Mercurial > hg
diff mercurial/copies.py @ 6277:cfebb175704f
copies: deal with symmetric difference for linear relationships
choose the minimum of symmetric difference and the two revs in question
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 15 Mar 2008 16:25:27 -0500 |
parents | fda369b5779c |
children | 5a45c82fc7da |
line wrap: on
line diff
--- a/mercurial/copies.py Sat Mar 15 16:24:16 2008 -0500 +++ b/mercurial/copies.py Sat Mar 15 16:25:27 2008 -0500 @@ -68,7 +68,7 @@ pr = repo.changelog.parentrevs def parents(rev): return [p for p in pr(rev) if p != nullrev] - limit = min(ancestor.symmetricdifference(rev1, rev2, parents)) + limit = min(ancestor.symmetricdifference(rev1, rev2, parents) + [rev1, rev2]) m1 = c1.manifest() m2 = c2.manifest() ma = ca.manifest()