Show More
@@ -162,7 +162,7 b' class DirstateItem(object):' | |||||
162 | return cls(p1_tracked=p1_tracked, p2_info=p2_info) |
|
162 | return cls(p1_tracked=p1_tracked, p2_info=p2_info) | |
163 | elif state == b'n': |
|
163 | elif state == b'n': | |
164 | if size == FROM_P2: |
|
164 | if size == FROM_P2: | |
165 |
return cls |
|
165 | return cls(wc_tracked=True, p2_info=True) | |
166 | elif size == NONNORMAL: |
|
166 | elif size == NONNORMAL: | |
167 | return cls.new_possibly_dirty() |
|
167 | return cls.new_possibly_dirty() | |
168 | elif mtime == AMBIGUOUS_TIME: |
|
168 | elif mtime == AMBIGUOUS_TIME: |
@@ -68,7 +68,12 b' impl DirstateEntry {' | |||||
68 | match state { |
|
68 | match state { | |
69 | EntryState::Normal => { |
|
69 | EntryState::Normal => { | |
70 | if size == SIZE_FROM_OTHER_PARENT { |
|
70 | if size == SIZE_FROM_OTHER_PARENT { | |
71 |
Self |
|
71 | Self { | |
|
72 | // might be missing P1_TRACKED | |||
|
73 | flags: Flags::WDIR_TRACKED | Flags::P2_INFO, | |||
|
74 | mode_size: None, | |||
|
75 | mtime: None, | |||
|
76 | } | |||
72 | } else if size == SIZE_NON_NORMAL { |
|
77 | } else if size == SIZE_NON_NORMAL { | |
73 | Self::new_possibly_dirty() |
|
78 | Self::new_possibly_dirty() | |
74 | } else if mtime == MTIME_UNSET { |
|
79 | } else if mtime == MTIME_UNSET { |
General Comments 0
You need to be logged in to leave comments.
Login now