##// END OF EJS Templates
dirstate: drop the `_normal` method...
marmoute -
r48728:1b3c753b default
parent child Browse files
Show More
@@ -510,7 +510,19 b' class dirstate(object):'
510 510 """record that the current state of the file on disk is known to be clean"""
511 511 self._dirty = True
512 512 self._updatedfiles.add(filename)
513 self._normal(filename, parentfiledata=parentfiledata)
513 if parentfiledata:
514 (mode, size, mtime) = parentfiledata
515 else:
516 (mode, size, mtime) = self._get_filedata(filename)
517 self._addpath(filename, mode=mode, size=size, mtime=mtime)
518 self._map.copymap.pop(filename, None)
519 if filename in self._map.nonnormalset:
520 self._map.nonnormalset.remove(filename)
521 if mtime > self._lastnormaltime:
522 # Remember the most recent modification timeslot for status(),
523 # to make sure we won't miss future size-preserving file content
524 # modifications that happen within the same timeslot.
525 self._lastnormaltime = mtime
514 526
515 527 @requires_no_parents_change
516 528 def set_possibly_dirty(self, filename):
@@ -705,21 +717,6 b' class dirstate(object):'
705 717 mtime = s[stat.ST_MTIME]
706 718 return (mode, size, mtime)
707 719
708 def _normal(self, f, parentfiledata=None):
709 if parentfiledata:
710 (mode, size, mtime) = parentfiledata
711 else:
712 (mode, size, mtime) = self._get_filedata(f)
713 self._addpath(f, mode=mode, size=size, mtime=mtime)
714 self._map.copymap.pop(f, None)
715 if f in self._map.nonnormalset:
716 self._map.nonnormalset.remove(f)
717 if mtime > self._lastnormaltime:
718 # Remember the most recent modification timeslot for status(),
719 # to make sure we won't miss future size-preserving file content
720 # modifications that happen within the same timeslot.
721 self._lastnormaltime = mtime
722
723 720 def _normallookup(self, f):
724 721 '''Mark a file normal, but possibly dirty.'''
725 722 if self.in_merge:
General Comments 0
You need to be logged in to leave comments. Login now