dagutil: fix off-by-one in inverserevlogdag buildup stable
authorPeter Arrenbrecht <peter.arrenbrecht@gmail.com>
Thu, 25 Aug 2011 17:20:00 +0200
branchstable
changeset 15052 06c3667c259c
parent 15051 c004d5550243
child 15053 17ffb30d9174
dagutil: fix off-by-one in inverserevlogdag buildup
mercurial/dagutil.py
tests/test-setdiscovery.t
--- 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