##// END OF EJS Templates
merge: duplicate 'if f in copied' into each branch
Martin von Zweigbergk -
r23474:9f4ac44a default
parent child Browse files
Show More
@@ -441,10 +441,10 b' def manifestmerge(repo, wctx, p2, pa, br'
441 else: # both changed something
441 else: # both changed something
442 actions['m'].append((f, (f, f, f, False, pa.node()),
442 actions['m'].append((f, (f, f, f, False, pa.node()),
443 "versions differ"))
443 "versions differ"))
444 elif f in copied: # files we'll deal with on m2 side
445 pass
446 elif n1: # file exists only on local side
444 elif n1: # file exists only on local side
447 if f in movewithdir: # directory rename, move local
445 if f in copied:
446 pass # we'll deal with it on m2 side
447 elif f in movewithdir: # directory rename, move local
448 f2 = movewithdir[f]
448 f2 = movewithdir[f]
449 actions['dm'].append((f2, (f, fl1),
449 actions['dm'].append((f2, (f, fl1),
450 "remote directory rename - move from " + f))
450 "remote directory rename - move from " + f))
@@ -467,7 +467,9 b' def manifestmerge(repo, wctx, p2, pa, br'
467 else:
467 else:
468 actions['r'].append((f, None, "other deleted"))
468 actions['r'].append((f, None, "other deleted"))
469 elif n2: # file exists only on remote side
469 elif n2: # file exists only on remote side
470 if f in movewithdir:
470 if f in copied:
471 pass # we'll deal with it on m1 side
472 elif f in movewithdir:
471 f2 = movewithdir[f]
473 f2 = movewithdir[f]
472 actions['dg'].append((f2, (f, fl2),
474 actions['dg'].append((f2, (f, fl2),
473 "local directory rename - get from " + f))
475 "local directory rename - get from " + f))
General Comments 0
You need to be logged in to leave comments. Login now