mercurial/localrepo.py
changeset 24378 9347c15d8136
parent 24373 59cc09240afb
child 24382 5859af34c5a6
equal deleted inserted replaced
24377:656f93ce66d5 24378:9347c15d8136
   301 
   301 
   302         # generic mapping between names and nodes
   302         # generic mapping between names and nodes
   303         self.names = namespaces.namespaces()
   303         self.names = namespaces.namespaces()
   304 
   304 
   305     def close(self):
   305     def close(self):
   306         pass
   306         self._writecaches()
       
   307 
       
   308     def _writecaches(self):
       
   309         if self._revbranchcache:
       
   310             self._revbranchcache.write()
   307 
   311 
   308     def _restrictcapabilities(self, caps):
   312     def _restrictcapabilities(self, caps):
   309         # bundle2 is not ready for prime time, drop it unless explicitly
   313         # bundle2 is not ready for prime time, drop it unless explicitly
   310         # required by the tests (or some brave tester)
   314         # required by the tests (or some brave tester)
   311         if self.ui.configbool('experimental', 'bundle2-exp', False):
   315         if self.ui.configbool('experimental', 'bundle2-exp', False):