comparison mercurial/dirstatemap.py @ 51700:7f0cb9ee0534

Backout accidental publication of a large range of revisions I accidentally published 25e7f9dcad0f::bd1483fd7088, this is the inverse.
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 23 Jul 2024 10:02:46 +0200
parents 493034cc3265
children ca7bde5dbafb
comparison
equal deleted inserted replaced
51699:bd1483fd7088 51700:7f0cb9ee0534
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 """
622 self._map.pop(f, None) 621 self._map.pop(f, None)
623 self.copymap.pop(f, None) 622 self.copymap.pop(f, None)
624 623
625 624
626 if rustmod is not None: 625 if rustmod is not None:
627 626
628 class dirstatemap(_dirstatemapcommon): 627 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 """