Submitter | Boris Feld |
---|---|
Date | July 9, 2017, 5:55 p.m. |
Message ID | <f8953ed43f8d1b146dcf.1499622923@FB> |
Download | mbox | patch |
Permalink | /patch/22172/ |
State | Changes Requested |
Headers | show |
Comments
Patch
diff -r 985d753d4f57 -r f8953ed43f8d mercurial/localrepo.py --- a/mercurial/localrepo.py Fri May 19 14:44:22 2017 +0200 +++ b/mercurial/localrepo.py Fri May 19 14:46:46 2017 +0200 @@ -1274,6 +1274,10 @@ self.ui.debug('updating the branch cache\n') branchmap.updatecache(self.filtered('served')) + if self.obsstore: + self.obsstore.obscache.update(self) + self.obsstore.obscache.save(self) + def invalidatecaches(self): if '_tagscache' in vars(self): diff -r 985d753d4f57 -r f8953ed43f8d mercurial/obsolete.py --- a/mercurial/obsolete.py Fri May 19 14:44:22 2017 +0200 +++ b/mercurial/obsolete.py Fri May 19 14:46:46 2017 +0200 @@ -525,6 +525,7 @@ self.svfs = repo.svfs self._defaultformat = defaultformat self._readonly = readonly + self.obscache = obscache(repo) def __iter__(self): return iter(self._all)