changeset 2239:f4f6ff874c40

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.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Fri, 24 Mar 2017 15:57:08 +0100
parents aac765e84de3
children ecb993892c61
files hgext3rd/evolve/obsdiscovery.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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