mercurial/revlog.py
changeset 51002 569eb5d0420d
parent 51001 39fa0b948f5a
child 51003 6c3798b4597f
equal deleted inserted replaced
51001:39fa0b948f5a 51002:569eb5d0420d
   906         ):
   906         ):
   907             return False
   907             return False
   908         return True
   908         return True
   909 
   909 
   910     def update_caches(self, transaction):
   910     def update_caches(self, transaction):
       
   911         """update on disk cache
       
   912 
       
   913         If a transaction is passed, the update may be delayed to transaction
       
   914         commit."""
   911         if self._nodemap_file is not None:
   915         if self._nodemap_file is not None:
   912             if transaction is None:
   916             if transaction is None:
   913                 nodemaputil.update_persistent_nodemap(self)
   917                 nodemaputil.update_persistent_nodemap(self)
   914             else:
   918             else:
   915                 nodemaputil.setup_persistent_nodemap(transaction, self)
   919                 nodemaputil.setup_persistent_nodemap(transaction, self)