# HG changeset patch # User Anton Shestakov # Date 1618310419 -28800 # Node ID d6fa75241975ac42e60005e3c3df0ea6f1c75999 # Parent 5435777c307cb8698039b702fabc67d400e42f73 evolve: save cache in debugstablesortcache() If this cache was rebuilt in this command (like in test-cache-corruption.t), it used to exist only in memory and then discarded. That's wasteful, so let's save the cache instead. Debug commands for other caches already do this. diff -r 5435777c307c -r d6fa75241975 hgext3rd/evolve/stablesort.py --- a/hgext3rd/evolve/stablesort.py Tue Apr 13 18:31:14 2021 +0800 +++ b/hgext3rd/evolve/stablesort.py Tue Apr 13 18:40:19 2021 +0800 @@ -340,6 +340,7 @@ merge = unfi.revs('merge()') nbmerge = len(merge) cache = unfi.stablesort + cache.save(repo) ui.write(b'number of merge: %12d\n' % nbmerge) alljumps = [] alljumpssize = []