# HG changeset patch # User Pierre-Yves David # Date 1495016590 -7200 # Node ID a41d900d015c4873cccf7704c16427b9d5b9c8ec # Parent 47ee05940d7ddcfe92043b3a76a22951b6441ffe dualsourcecache: simplify cachekey.clear We do not needs the super call anymore and we can make the reset case more explicit. So we do. diff -r 47ee05940d7d -r a41d900d015c hgext3rd/evolve/obscache.py --- a/hgext3rd/evolve/obscache.py Wed May 17 11:58:48 2017 +0200 +++ b/hgext3rd/evolve/obscache.py Wed May 17 12:23:10 2017 +0200 @@ -161,10 +161,10 @@ """ # /!\ IMPORTANT /!\ # You must overide this method to actually - self._cachekey = self.emptykey if reset else None - s = super(dualsourcecache, self) - if util.safehasattr(s, 'clear') and callable(s.clear): - s.clear() + if reset: + self._cachekey = self.emptykey if reset else None + else: + self._cachekey = None def load(self, repo): """Load data from disk