[PATCH 1 of 2 V2] revlog: make getcandidaterevs more consistent about updating tested revs set

Paul Morelle paul.morelle at octobus.net
Tue May 22 07:34:26 UTC 2018


# HG changeset patch
# User Paul Morelle <paul.morelle at octobus.net>
# Date 1520417422 -3600
#      Wed Mar 07 11:10:22 2018 +0100
# Node ID c0ac96176ebefaf19cd2d368281c180c575c31f2
# Parent  90e02bd8c4473fec03639f26f3d1b2d30d9861d3
# EXP-Topic semi-snapshots
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r c0ac96176ebe
revlog: make getcandidaterevs more consistent about updating tested revs set

Like in previous cases, update the set of tested revisions after yielding

diff -r 90e02bd8c447 -r c0ac96176ebe mercurial/revlog.py
--- a/mercurial/revlog.py	Wed Mar 07 12:00:58 2018 +0100
+++ b/mercurial/revlog.py	Wed Mar 07 11:10:22 2018 +0100
@@ -345,6 +345,7 @@
                 # other approach failed try against prev to hopefully save us a
                 # fulltext.
                 yield (prev,)
+                tested.add(prev)
 
     def buildtext(self, revinfo, fh):
         """Builds a fulltext version of a revision


More information about the Mercurial-devel mailing list