stablerange: warm cache before using it in findrangemissing
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Fri, 24 Mar 2017 15:57:08 +0100
changeset 2239 f4f6ff874c40
parent 2238 aac765e84de3
child 2240 ecb993892c61
stablerange: warm cache before using it in findrangemissing We make sure the cache is fully up to date before starting to use it. Updating all value is more efficient and this give us a single point where we update and write on disk. Hopefully the cache have been kept up to date as we go anyway.
hgext3rd/evolve/obsdiscovery.py
--- a/hgext3rd/evolve/obsdiscovery.py	Fri Mar 24 15:56:57 2017 +0100
+++ b/hgext3rd/evolve/obsdiscovery.py	Fri Mar 24 15:57:08 2017 +0100
@@ -240,6 +240,7 @@
     missing = set()
 
     heads = local.revs('heads(%ld)', probeset)
+    local.stablerange.warmup(local)
 
     rangelength = local.stablerange.rangelength
     subranges = local.stablerange.subranges