equal
deleted
inserted
replaced
592 for f in allfiles: |
592 for f in allfiles: |
593 if f not in changedfiles: |
593 if f not in changedfiles: |
594 self._map[f] = oldmap[f] |
594 self._map[f] = oldmap[f] |
595 else: |
595 else: |
596 if 'x' in allfiles.flags(f): |
596 if 'x' in allfiles.flags(f): |
597 self._map[f] = dirstatetuple('n', 0777, -1, 0) |
597 self._map[f] = dirstatetuple('n', 0o777, -1, 0) |
598 else: |
598 else: |
599 self._map[f] = dirstatetuple('n', 0666, -1, 0) |
599 self._map[f] = dirstatetuple('n', 0o666, -1, 0) |
600 self._pl = (parent, nullid) |
600 self._pl = (parent, nullid) |
601 self._dirty = True |
601 self._dirty = True |
602 |
602 |
603 def write(self): |
603 def write(self): |
604 if not self._dirty: |
604 if not self._dirty: |
961 dadd(fn) |
961 dadd(fn) |
962 elif state == 'n': |
962 elif state == 'n': |
963 mtime = int(st.st_mtime) |
963 mtime = int(st.st_mtime) |
964 if (size >= 0 and |
964 if (size >= 0 and |
965 ((size != st.st_size and size != st.st_size & _rangemask) |
965 ((size != st.st_size and size != st.st_size & _rangemask) |
966 or ((mode ^ st.st_mode) & 0100 and checkexec)) |
966 or ((mode ^ st.st_mode) & 0o100 and checkexec)) |
967 or size == -2 # other parent |
967 or size == -2 # other parent |
968 or fn in copymap): |
968 or fn in copymap): |
969 madd(fn) |
969 madd(fn) |
970 elif time != mtime and time != mtime & _rangemask: |
970 elif time != mtime and time != mtime & _rangemask: |
971 ladd(fn) |
971 ladd(fn) |