changeset 30360 | 0298a07f64d9 |
parent 30229 | 69ffbbe73dd0 |
child 30361 | 1070df141718 |
--- a/mercurial/copies.py Mon Nov 07 18:57:54 2016 -0800 +++ b/mercurial/copies.py Thu Nov 10 02:17:22 2016 -0800 @@ -278,7 +278,7 @@ ac = repo.changelog.ancestors(revs, inclusive=True) ctx._ancestrycontext = ac def makectx(f, n): - if len(n) != 20: # in a working context? + if len(n) != 20 or n in node.wdirnodes: # in a working context? if ctx.rev() is None: return ctx.filectx(f) return repo[None][f]