# HG changeset patch # User Matt Mackall # Date 2008-03-29 17:39:47 # Node ID 3ee6f1fce94a6f750419829bbb1fc3956a6a2207 # Parent ecde0baee57043a5377cc10b113b8666c84c6886 copies: fix silly precedence bug diff --git a/mercurial/copies.py b/mercurial/copies.py --- a/mercurial/copies.py +++ b/mercurial/copies.py @@ -97,7 +97,7 @@ def copies(repo, c1, c2, ca): c2 = ctx(of, m2[of]) ca = c1.ancestor(c2) # related and named changed on only one side? - if ca and ca.path() == f or ca.path() == c2.path(): + if ca and (ca.path() == f or ca.path() == c2.path()): if c1 != ca or c2 != ca: # merge needed? copy[f] = of elif of in ma: