# HG changeset patch # User Matt Mackall # Date 1264740346 21600 # Node ID d1cd09bb4d18ccfe85ae909ab81e79d626a8edf1 # Parent b08ffd27dfc844eb46bccd38b0775a377c0153f2 copies: fix issue1994 Unscramble divergence test diff -r b08ffd27dfc8 -r d1cd09bb4d18 mercurial/copies.py --- a/mercurial/copies.py Thu Jan 28 11:27:09 2010 +0000 +++ b/mercurial/copies.py Thu Jan 28 22:45:46 2010 -0600 @@ -154,7 +154,7 @@ break # no merge needed, quit early c2 = ctx(of, m2[of]) cr = related(oc, c2, ca.rev()) - if of == f or of == c2.path(): # non-divergent + if cr and (cr.path() == f or cr.path == c2.path()): # non-divergent copy[f] = of of = None break