Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
6274:f3f383efbeae | 6275:fda369b5779c |
---|---|
95 # - add colors[r] to its parents | 95 # - add colors[r] to its parents |
96 # | 96 # |
97 # We keep track of the number of revisions in the heap that | 97 # We keep track of the number of revisions in the heap that |
98 # we may be interested in. We stop walking the graph as soon | 98 # we may be interested in. We stop walking the graph as soon |
99 # as this number reaches 0. | 99 # as this number reaches 0. |
100 if a == b: | |
101 return [a] | |
102 | |
100 WHITE = 1 | 103 WHITE = 1 |
101 BLACK = 2 | 104 BLACK = 2 |
102 ALLCOLORS = WHITE | BLACK | 105 ALLCOLORS = WHITE | BLACK |
103 colors = {a: WHITE, b: BLACK} | 106 colors = {a: WHITE, b: BLACK} |
104 | 107 |