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