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

login
register
mail settings
Submitter Paul Morelle
Date May 22, 2018, 7:34 a.m.
Message ID <c0ac96176ebefaf19cd2.1526974466@belenos.localdomain>
Download mbox | patch
Permalink /patch/31805/
State Accepted
Headers show

Comments

Paul Morelle - May 22, 2018, 7:34 a.m.
# HG changeset patch
# User Paul Morelle <paul.morelle@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

Patch

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