folder conflicting
This commit is contained in:
parent
2dc1c8e9d1
commit
d37d577289
@ -249,6 +249,8 @@ class Manager():
|
||||
if node['cur_type'] == 'f':
|
||||
n = self.store_fdiff(node)
|
||||
todump.append(n)
|
||||
continue
|
||||
todump.append(node)
|
||||
|
||||
_dump.dump_snapshot(todump, path=unmerged_path, dump_file_name='.unmerged.json.gz')
|
||||
|
||||
@ -351,7 +353,7 @@ class Manager():
|
||||
absolute_local_path = colors.CYAN(self.get_absolute_local_path(unode))
|
||||
name = unode['name']
|
||||
remote_hash = unode['remote_hash']
|
||||
last_type = unode['last_type']
|
||||
last_type = unode.get('last_type')
|
||||
local_hash = unode['cur_hash']
|
||||
cur_type = unode['cur_type']
|
||||
last_hash = unode['last_hash']
|
||||
@ -418,7 +420,10 @@ class Manager():
|
||||
|
||||
remote_hash = node.get('remote_hash')
|
||||
if remote_hash is None and rexists:
|
||||
# if node is added in local tree `remote_hash` don't exists
|
||||
# if node is added in local tree,
|
||||
# but a copy appears in remote tree
|
||||
#`we don't know before, remote_hash` don't exists
|
||||
conflicting = True
|
||||
unode = node.copy()
|
||||
unode['last_hash'] = None
|
||||
unode['remote_hash'] = rhash
|
||||
@ -502,6 +507,9 @@ class Manager():
|
||||
## mark node as synched with remote,
|
||||
dones.append(node)
|
||||
|
||||
if unmerged:
|
||||
self.store_unmerged_diff(unmerged)
|
||||
|
||||
return dones
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user