Mercurial > evolve
changeset 5871:d6fa75241975 stable
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.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Tue, 13 Apr 2021 18:40:19 +0800 |
parents | 5435777c307c |
children | bdda94ea2195 |
files | hgext3rd/evolve/stablesort.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 = []