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