# HG changeset patch # User Pierre-Yves David # Date 1494929910 -7200 # Node ID 12386f7f50566573ede47f706774a3c4624e8fec # Parent 8e42b33ea0516b2550ca3ed37b15b25ba74a3757 dualsourcecache: add a cache name This will be used to automatically log message for blackbox diff -r 8e42b33ea051 -r 12386f7f5056 hgext3rd/evolve/obscache.py --- a/hgext3rd/evolve/obscache.py Tue May 16 12:17:13 2017 +0200 +++ b/hgext3rd/evolve/obscache.py Tue May 16 12:18:30 2017 +0200 @@ -139,6 +139,7 @@ # - obsstore-file-size (in bytes), # - obsstore "cache key" emptykey = (node.nullrev, node.nullid, 0, 0, node.nullid) + _cachename = None # used for error message def __init__(self): super(dualsourcecache, self).__init__() @@ -335,6 +336,7 @@ _filepath = 'cache/evoext-obscache-00' _headerformat = '>q20sQQ20s' + _cachename = 'evo-ext-obscache' # used for error message def __init__(self, repo): super(obscache, self).__init__() diff -r 8e42b33ea051 -r 12386f7f5056 hgext3rd/evolve/obsdiscovery.py --- a/hgext3rd/evolve/obsdiscovery.py Tue May 16 12:17:13 2017 +0200 +++ b/hgext3rd/evolve/obsdiscovery.py Tue May 16 12:18:30 2017 +0200 @@ -420,6 +420,8 @@ _schemaversion = 1 + _cachename = 'evo-ext-obshashrange' # used for error message + def __init__(self, repo): super(_obshashcache, self).__init__() self._path = repo.vfs.join('cache/evoext_obshashrange_v1.sqlite')