Show More
@@ -276,8 +276,11 def applyupdates(repo, action, wctx, mct | |||||
276 | fcl = wctx[f] |
|
276 | fcl = wctx[f] | |
277 | fco = mctx[f2] |
|
277 | fco = mctx[f2] | |
278 | if mctx == actx: # backwards, use working dir parent as ancestor |
|
278 | if mctx == actx: # backwards, use working dir parent as ancestor | |
|
279 | if fcl.parents(): | |||
279 | fca = fcl.parents()[0] |
|
280 | fca = fcl.parents()[0] | |
280 | else: |
|
281 | else: | |
|
282 | fca = repo.filectx(f, fileid=nullrev) | |||
|
283 | else: | |||
281 | fca = fcl.ancestor(fco, actx) |
|
284 | fca = fcl.ancestor(fco, actx) | |
282 | if not fca: |
|
285 | if not fca: | |
283 | fca = repo.filectx(f, fileid=nullrev) |
|
286 | fca = repo.filectx(f, fileid=nullrev) |
General Comments 0
You need to be logged in to leave comments.
Login now