Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlog.py @ 38201:faa015417348
revlog: make getcandidaterevs more consistent about updating tested revs set
Like in previous cases, update the set of tested revisions after yielding
author | Paul Morelle <paul.morelle@octobus.net> |
---|---|
date | Wed, 07 Mar 2018 11:10:22 +0100 |
parents | 69ec6f98cfa6 |
children | fc72beec2a1a |
comparison
equal
deleted
inserted
replaced
38200:ec37df9042f9 | 38201:faa015417348 |
---|---|
343 | 343 |
344 if prev not in tested: | 344 if prev not in tested: |
345 # other approach failed try against prev to hopefully save us a | 345 # other approach failed try against prev to hopefully save us a |
346 # fulltext. | 346 # fulltext. |
347 yield (prev,) | 347 yield (prev,) |
348 tested.add(prev) | |
348 | 349 |
349 def buildtext(self, revinfo, fh): | 350 def buildtext(self, revinfo, fh): |
350 """Builds a fulltext version of a revision | 351 """Builds a fulltext version of a revision |
351 | 352 |
352 revinfo: _revisioninfo instance that contains all needed info | 353 revinfo: _revisioninfo instance that contains all needed info |