Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hbisect.py @ 14895:a35d6f822e3e
hbisect: do not assume that min(good) is an ancestor of min(bad)
The included test used to report "inconsistent state", which is
incorrect. While this situation cannot occur when the user sticks to
the suggested bisect sequence. However, adding more consistent
good/bad information to the bisect state should be tolerated as well.
author | Alexander Krauss <krauss@in.tum.de> |
---|---|
date | Sun, 17 Jul 2011 00:36:43 +0200 |
parents | 3db92e3948d5 |
children | 774da7121fc9 |
line wrap: on
line diff
--- a/mercurial/hbisect.py Sun Jul 17 00:35:31 2011 +0200 +++ b/mercurial/hbisect.py Sun Jul 17 00:36:43 2011 +0200 @@ -35,8 +35,9 @@ # build visit array ancestors = [None] * (len(changelog) + 1) # an extra for [-1] - # set nodes descended from goodrev - ancestors[goodrev] = [] + # set nodes descended from goodrevs + for rev in goodrevs: + ancestors[rev] = [] for rev in xrange(goodrev + 1, len(changelog)): for prev in clparents(rev): if ancestors[prev] == []: