Commits

Pierre-Yves David  committed 168ea7d

obsolete: blindly obsolete unstability cache when changeset are added

  • Participants
  • Parent commits 7bee48a

Comments (0)

Files changed (1)

File hgext/obsolete.py

     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
                 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):