Show More
@@ -156,7 +156,7 b' class DirstateItem(object):' | |||||
156 | if state == b'm': |
|
156 | if state == b'm': | |
157 | return cls(wc_tracked=True, p1_tracked=True, p2_info=True) |
|
157 | return cls(wc_tracked=True, p1_tracked=True, p2_info=True) | |
158 | elif state == b'a': |
|
158 | elif state == b'a': | |
159 |
return cls |
|
159 | return cls(wc_tracked=True) | |
160 | elif state == b'r': |
|
160 | elif state == b'r': | |
161 | if size == NONNORMAL: |
|
161 | if size == NONNORMAL: | |
162 | p1_tracked = True |
|
162 | p1_tracked = True |
@@ -81,7 +81,11 b' impl DirstateEntry {' | |||||
81 | Self::new_normal(mode, size, mtime) |
|
81 | Self::new_normal(mode, size, mtime) | |
82 | } |
|
82 | } | |
83 | } |
|
83 | } | |
84 |
EntryState::Added => Self |
|
84 | EntryState::Added => Self { | |
|
85 | flags: Flags::WDIR_TRACKED, | |||
|
86 | mode_size: None, | |||
|
87 | mtime: None, | |||
|
88 | }, | |||
85 | EntryState::Removed => Self { |
|
89 | EntryState::Removed => Self { | |
86 | flags: if size == SIZE_NON_NORMAL { |
|
90 | flags: if size == SIZE_NON_NORMAL { | |
87 | Flags::P1_TRACKED | Flags::P2_INFO |
|
91 | Flags::P1_TRACKED | Flags::P2_INFO |
General Comments 0
You need to be logged in to leave comments.
Login now