Comments
Patch
@@ -852,11 +852,12 @@
def recordupdates(repo, actions, branchmerge):
"record merge actions to the dirstate"
# remove (must come first)
- for f, args, msg in actions['r']:
- if branchmerge:
- repo.dirstate.remove(f)
- else:
- repo.dirstate.drop(f)
+ for m in 'r', 'rm':
+ for f, args, msg in actions[m]:
+ if branchmerge:
+ repo.dirstate.remove(f)
+ else:
+ repo.dirstate.drop(f)
# forget (must come first)
for f, args, msg in actions['f']:
@@ -903,13 +904,6 @@
if f2 == f: # file not locally copied/moved
repo.dirstate.normallookup(f)
- # remove file that moved away
- for f, args, msg in actions['rm']:
- if branchmerge:
- repo.dirstate.remove(f)
- else:
- repo.dirstate.drop(f)
-
# directory rename, move local
for f, args, msg in actions['dm']:
f0, flag = args