# HG changeset patch # User Pierre-Yves David # Date 1490367428 -3600 # Node ID f4f6ff874c40b4a2eebbee51a468ee248eeca610 # Parent aac765e84de3fbae8ac3f65606511a47e5c5113f 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. diff --git a/hgext3rd/evolve/obsdiscovery.py b/hgext3rd/evolve/obsdiscovery.py --- a/hgext3rd/evolve/obsdiscovery.py +++ b/hgext3rd/evolve/obsdiscovery.py @@ -240,6 +240,7 @@ missing = set() heads = local.revs('heads(%ld)', probeset) + local.stablerange.warmup(local) rangelength = local.stablerange.rangelength subranges = local.stablerange.subranges