##// END OF EJS Templates
dirstate: infer the 'n' state from `from_p2`...
marmoute -
r48318:d3cf2032 default
parent child Browse files
Show More
@@ -543,7 +543,7 b' class dirstate(object):'
543 543 self._addpath(f, merged=True)
544 544 else:
545 545 # add-like
546 self._addpath(f, b'n', 0, from_p2=True)
546 self._addpath(f, from_p2=True)
547 547 self._map.copymap.pop(f, None)
548 548
549 549 def add(self, f):
@@ -172,6 +172,7 b' class dirstatemap(object):'
172 172 mtime = AMBIGUOUS_TIME
173 173 elif from_p2:
174 174 assert not possibly_dirty
175 state = b'n'
175 176 size = FROM_P2
176 177 mtime = AMBIGUOUS_TIME
177 178 elif possibly_dirty:
@@ -91,6 +91,7 b' impl DirstateMap {'
91 91 entry.mtime = MTIME_UNSET;
92 92 } else if from_p2 {
93 93 assert!(!possibly_dirty);
94 entry.state = EntryState::Normal;
94 95 entry.size = SIZE_FROM_OTHER_PARENT;
95 96 entry.mtime = MTIME_UNSET;
96 97 } else if possibly_dirty {
@@ -742,6 +742,7 b" impl<'on_disk> super::dispatch::Dirstate"
742 742 entry.mtime = MTIME_UNSET;
743 743 } else if from_p2 {
744 744 assert!(!possibly_dirty);
745 entry.state = EntryState::Normal;
745 746 entry.size = SIZE_FROM_OTHER_PARENT;
746 747 entry.mtime = MTIME_UNSET;
747 748 } else if possibly_dirty {
General Comments 0
You need to be logged in to leave comments. Login now