changeset 15052:06c3667c259c stable

dagutil: fix off-by-one in inverserevlogdag buildup
author Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
date Thu, 25 Aug 2011 17:20:00 +0200
parents c004d5550243
children 17ffb30d9174
files mercurial/dagutil.py tests/test-setdiscovery.t
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dagutil.py	Fri Aug 19 10:05:23 2011 -0300
+++ b/mercurial/dagutil.py	Thu Aug 25 17:20:00 2011 +0200
@@ -260,7 +260,7 @@
             if isroot:
                 roots.append(rev)
             rev -= 1
-        self._walkfrom = rev - 1
+        self._walkfrom = rev
 
     def _getheads(self):
         self._walkto(nullrev)
--- a/tests/test-setdiscovery.t	Fri Aug 19 10:05:23 2011 -0300
+++ b/tests/test-setdiscovery.t	Thu Aug 25 17:20:00 2011 +0200
@@ -260,7 +260,7 @@
   query 2; still undecided: 1029, sample size is: 11
   sampling from both directions
   searching: 3 queries
-  query 3; still undecided: 16, sample size is: 16
+  query 3; still undecided: 15, sample size is: 15
   3 total queries
   common heads: 7ead0cba2838