##// END OF EJS Templates
dirstate: infer the 'n' state from `possibly_dirty`...
marmoute -
r48317:80617f3c default
parent child Browse files
Show More
@@ -530,7 +530,7 b' class dirstate(object):'
530 return
530 return
531 elif entry.merged or entry.from_p2:
531 elif entry.merged or entry.from_p2:
532 return
532 return
533 self._addpath(f, b'n', 0, possibly_dirty=True)
533 self._addpath(f, possibly_dirty=True)
534 self._map.copymap.pop(f, None)
534 self._map.copymap.pop(f, None)
535
535
536 def otherparent(self, f):
536 def otherparent(self, f):
@@ -175,6 +175,7 b' class dirstatemap(object):'
175 size = FROM_P2
175 size = FROM_P2
176 mtime = AMBIGUOUS_TIME
176 mtime = AMBIGUOUS_TIME
177 elif possibly_dirty:
177 elif possibly_dirty:
178 state = b'n'
178 size = NONNORMAL
179 size = NONNORMAL
179 mtime = AMBIGUOUS_TIME
180 mtime = AMBIGUOUS_TIME
180 else:
181 else:
@@ -94,6 +94,7 b' impl DirstateMap {'
94 entry.size = SIZE_FROM_OTHER_PARENT;
94 entry.size = SIZE_FROM_OTHER_PARENT;
95 entry.mtime = MTIME_UNSET;
95 entry.mtime = MTIME_UNSET;
96 } else if possibly_dirty {
96 } else if possibly_dirty {
97 entry.state = EntryState::Normal;
97 entry.size = SIZE_NON_NORMAL;
98 entry.size = SIZE_NON_NORMAL;
98 entry.mtime = MTIME_UNSET;
99 entry.mtime = MTIME_UNSET;
99 } else {
100 } else {
@@ -745,6 +745,7 b" impl<'on_disk> super::dispatch::Dirstate"
745 entry.size = SIZE_FROM_OTHER_PARENT;
745 entry.size = SIZE_FROM_OTHER_PARENT;
746 entry.mtime = MTIME_UNSET;
746 entry.mtime = MTIME_UNSET;
747 } else if possibly_dirty {
747 } else if possibly_dirty {
748 entry.state = EntryState::Normal;
748 entry.size = SIZE_NON_NORMAL;
749 entry.size = SIZE_NON_NORMAL;
749 entry.mtime = MTIME_UNSET;
750 entry.mtime = MTIME_UNSET;
750 } else {
751 } else {
General Comments 0
You need to be logged in to leave comments. Login now