diff -r 169baf3d1d3c -r edf503e5dfd4 mercurial/copies.py --- a/mercurial/copies.py Tue Aug 22 16:08:31 2017 +0200 +++ b/mercurial/copies.py Tue Aug 22 16:16:39 2017 +0200 @@ -381,7 +381,7 @@ # if we have a dirty endpoint, we need to trigger graft logic, and also # keep track of which endpoint is dirty dirtyc1 = not (base == _c1 or base.descendant(_c1)) - dirtyc2 = not (base== _c2 or base.descendant(_c2)) + dirtyc2 = not (base == _c2 or base.descendant(_c2)) graft = dirtyc1 or dirtyc2 tca = base if graft: