stablecache: warmup on unfiltered repository
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 22 Mar 2017 22:05:30 +0100
changeset 2201 8d371329e8b9
parent 2200 d5a216dce71c
child 2202 5f8a2604bb2b
stablecache: warmup on unfiltered repository We only looks at ancestors revision so filtering will not have any effect. This reduce overhead from the filtering.
hgext3rd/evolve/stablerange.py
--- a/hgext3rd/evolve/stablerange.py	Wed Mar 22 21:11:35 2017 +0100
+++ b/hgext3rd/evolve/stablerange.py	Wed Mar 22 22:05:30 2017 +0100
@@ -177,6 +177,7 @@
 
     def warmup(self, repo, heads):
         """warm the cache up to 'heads'"""
+        repo = repo.unfiltered()
         for r in repo.revs("::%ld", heads):
             self.depthrev(repo, r)