Show More
@@ -300,6 +300,7 b' def mergecopies(repo, c1, c2, ca):' | |||||
300 | """ |
|
300 | """ | |
301 | rev = ctx.rev() |
|
301 | rev = ctx.rev() | |
302 | ac = getattr(ctx, '_ancestrycontext', None) |
|
302 | ac = getattr(ctx, '_ancestrycontext', None) | |
|
303 | repo = ctx._repo | |||
303 | if ac is None: |
|
304 | if ac is None: | |
304 | revs = [rev] |
|
305 | revs = [rev] | |
305 | if rev is None: |
|
306 | if rev is None: | |
@@ -308,9 +309,9 b' def mergecopies(repo, c1, c2, ca):' | |||||
308 | ctx._ancestrycontext = ac |
|
309 | ctx._ancestrycontext = ac | |
309 | def makectx(f, n): |
|
310 | def makectx(f, n): | |
310 | if len(n) != 20: # in a working context? |
|
311 | if len(n) != 20: # in a working context? | |
311 |
if c |
|
312 | if ctx.rev() is None: | |
312 |
return c |
|
313 | return ctx.filectx(f) | |
313 |
return |
|
314 | return repo[None][f] | |
314 | fctx = repo.filectx(f, fileid=n) |
|
315 | fctx = repo.filectx(f, fileid=n) | |
315 | # setup only needed for filectx not create from a changectx |
|
316 | # setup only needed for filectx not create from a changectx | |
316 | fctx._ancestrycontext = ac |
|
317 | fctx._ancestrycontext = ac |
General Comments 0
You need to be logged in to leave comments.
Login now