##// END OF EJS Templates
merge: move check for empty ancestor into findcopies
Matt Mackall -
r3731:b4af5f92 default
parent child Browse files
Show More
@@ -125,7 +125,7 b' def findcopies(repo, m1, m2, ma, limit):'
125 return {}
125 return {}
126
126
127 # avoid silly behavior for update from empty dir
127 # avoid silly behavior for update from empty dir
128 if not m1:
128 if not m1 or not m2 or not ma:
129 return {}
129 return {}
130
130
131 dcopies = repo.dirstate.copies()
131 dcopies = repo.dirstate.copies()
@@ -188,7 +188,7 b' def manifestmerge(repo, p1, p2, pa, over'
188 repo.ui.debug(" %s: %s -> %s\n" % (f, msg, m))
188 repo.ui.debug(" %s: %s -> %s\n" % (f, msg, m))
189 action.append((f, m) + args)
189 action.append((f, m) + args)
190
190
191 if pa and not (backwards or overwrite):
191 if not (backwards or overwrite):
192 copy = findcopies(repo, m1, m2, ma, pa.rev())
192 copy = findcopies(repo, m1, m2, ma, pa.rev())
193 copied = dict.fromkeys(copy.values())
193 copied = dict.fromkeys(copy.values())
194
194
General Comments 0
You need to be logged in to leave comments. Login now