mercurial/dirstatemap.py
changeset 51690 493034cc3265
parent 50928 d718eddf01d9
child 51700 7f0cb9ee0534
equal deleted inserted replaced
51689:39e2b2d062c1 51690:493034cc3265
   329         """
   329         """
   330         Return an iterator of (filename, state, mode, size, mtime) tuples
   330         Return an iterator of (filename, state, mode, size, mtime) tuples
   331 
   331 
   332         `all` is unused when Rust is not enabled
   332         `all` is unused when Rust is not enabled
   333         """
   333         """
   334         for (filename, item) in self.items():
   334         for filename, item in self.items():
   335             yield (filename, item.state, item.mode, item.size, item.mtime)
   335             yield (filename, item.state, item.mode, item.size, item.mtime)
   336 
   336 
   337     def keys(self):
   337     def keys(self):
   338         return self._map.keys()
   338         return self._map.keys()
   339 
   339 
   615     def _drop_entry(self, f):
   615     def _drop_entry(self, f):
   616         """remove any entry for file f
   616         """remove any entry for file f
   617 
   617 
   618         This should also drop associated copy information
   618         This should also drop associated copy information
   619 
   619 
   620         The fact we actually need to drop it is the responsability of the caller"""
   620         The fact we actually need to drop it is the responsability of the caller
       
   621         """
   621         self._map.pop(f, None)
   622         self._map.pop(f, None)
   622         self.copymap.pop(f, None)
   623         self.copymap.pop(f, None)
   623 
   624 
   624 
   625 
   625 if rustmod is not None:
   626 if rustmod is not None:
   626 
   627 
   627     class dirstatemap(_dirstatemapcommon):
   628     class dirstatemap(_dirstatemapcommon):
   628 
       
   629         ### Core data storage and access
   629         ### Core data storage and access
   630 
   630 
   631         @propertycache
   631         @propertycache
   632         def _map(self):
   632         def _map(self):
   633             """
   633             """