Mercurial > public > mercurial-scm > hg
diff mercurial/ancestor.py @ 6275:fda369b5779c
diff: use copy smarts from copies.py
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 15 Mar 2008 10:02:31 -0500 |
parents | 20aa460a52b6 |
children | 6b704ef9ed06 |
line wrap: on
line diff
--- a/mercurial/ancestor.py Sat Mar 15 10:02:31 2008 -0500 +++ b/mercurial/ancestor.py Sat Mar 15 10:02:31 2008 -0500 @@ -97,6 +97,9 @@ # We keep track of the number of revisions in the heap that # we may be interested in. We stop walking the graph as soon # as this number reaches 0. + if a == b: + return [a] + WHITE = 1 BLACK = 2 ALLCOLORS = WHITE | BLACK