Show More
@@ -138,9 +138,6 def filemerge(repo, mynode, orig, fcd, f | |||
|
138 | 138 | if not fco.cmp(fcd.data()): # files identical? |
|
139 | 139 | return None |
|
140 | 140 | |
|
141 | if fca == fco: # backwards, use working dir parent as ancestor | |
|
142 | fca = fcd.parents()[0] | |
|
143 | ||
|
144 | 141 | ui = repo.ui |
|
145 | 142 | fd = fcd.path() |
|
146 | 143 | binary = isbin(fcd) or isbin(fco) or isbin(fca) |
@@ -270,7 +270,12 def applyupdates(repo, action, wctx, mct | |||
|
270 | 270 | repo.ui.debug("preserving %s for resolve of %s\n" % (f, fd)) |
|
271 | 271 | fcl = wctx[f] |
|
272 | 272 | fco = mctx[f2] |
|
273 | fca = fcl.ancestor(fco, actx) or repo.filectx(f, fileid=nullrev) | |
|
273 | if mctx == actx: # backwards, use working dir parent as ancestor | |
|
274 | fca = fcl.parents()[0] | |
|
275 | else: | |
|
276 | fca = fcl.ancestor(fco, actx) | |
|
277 | if not fca: | |
|
278 | fca = repo.filectx(f, fileid=nullrev) | |
|
274 | 279 | ms.add(fcl, fco, fca, fd, flags) |
|
275 | 280 | if f != fd and move: |
|
276 | 281 | moves.append(f) |
General Comments 0
You need to be logged in to leave comments.
Login now