Mercurial > evolve
changeset 210:168ea7d200a0
obsolete: blindly obsolete unstability cache when changeset are added
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Mon, 23 Apr 2012 18:53:26 +0200 |
parents | 7bee48a54c4a |
children | 69a37d56c7fb |
files | hgext/obsolete.py |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/obsolete.py Mon Apr 23 17:25:36 2012 +0200 +++ b/hgext/obsolete.py Mon Apr 23 18:53:26 2012 +0200 @@ -365,6 +365,7 @@ opush = repo.push o_rollback = repo._rollback ocancopy = repo.cancopy + o_updatebranchcache = repo.updatebranchcache # /!\ api change in Hg 2.2 (97efd26eb9576f39590812ea9) /!\ if util.safehasattr(repo, '_journalfiles'): # Hg 2.2 @@ -419,6 +420,13 @@ del self._obssubrels if '_obsoleteset' in vars(self): del self._obsoleteset + self._clearunstablecache() + + def updatebranchcache(self): + o_updatebranchcache() + self._clearunstablecache() + + def _clearunstablecache(self): if '_unstableset' in vars(self): del self._unstableset if '_suspendedset' in vars(self):