##// END OF EJS Templates
dirstate-item: replace call to new_normal...
marmoute -
r48975:d0081dbc default
parent child Browse files
Show More
@@ -157,7 +157,11 b' class DirstateItem(object):'
157 parentfiledata=(mode, size, 42),
157 parentfiledata=(mode, size, 42),
158 )
158 )
159 else:
159 else:
160 return cls.new_normal(mode, size, mtime)
160 return cls(
161 wc_tracked=True,
162 p1_tracked=True,
163 parentfiledata=(mode, size, mtime),
164 )
161 else:
165 else:
162 raise RuntimeError(b'unknown state: %s' % state)
166 raise RuntimeError(b'unknown state: %s' % state)
163
167
@@ -87,7 +87,11 b' impl DirstateEntry {'
87 mtime: None,
87 mtime: None,
88 }
88 }
89 } else {
89 } else {
90 Self::new_normal(mode, size, mtime)
90 Self {
91 flags: Flags::WDIR_TRACKED | Flags::P1_TRACKED,
92 mode_size: Some((mode, size)),
93 mtime: Some(mtime),
94 }
91 }
95 }
92 }
96 }
93 EntryState::Added => Self {
97 EntryState::Added => Self {
General Comments 0
You need to be logged in to leave comments. Login now