diff --git a/mercurial/copies.py b/mercurial/copies.py --- a/mercurial/copies.py +++ b/mercurial/copies.py @@ -67,10 +67,7 @@ """chain two sets of copies 'a' and 'b'""" t = a.copy() for k, v in pycompat.iteritems(b): - if v in t: - t[k] = t[v] - else: - t[k] = v + t[k] = t.get(v, v) return t