rust/hg-core/src/dirstate/entry.rs
changeset 48173 20e41b367953
parent 48172 898de425bcd6
child 48175 d0081dbca442
equal deleted inserted replaced
48172:898de425bcd6 48173:20e41b367953
   115                 mtime: None,
   115                 mtime: None,
   116             },
   116             },
   117         }
   117         }
   118     }
   118     }
   119 
   119 
   120     pub fn new_possibly_dirty() -> Self {
       
   121         Self {
       
   122             flags: Flags::WDIR_TRACKED | Flags::P1_TRACKED,
       
   123             mode_size: None,
       
   124             mtime: None,
       
   125         }
       
   126     }
       
   127 
       
   128     pub fn new_normal(mode: i32, size: i32, mtime: i32) -> Self {
   120     pub fn new_normal(mode: i32, size: i32, mtime: i32) -> Self {
   129         Self {
   121         Self {
   130             flags: Flags::WDIR_TRACKED | Flags::P1_TRACKED,
   122             flags: Flags::WDIR_TRACKED | Flags::P1_TRACKED,
   131             mode_size: Some((mode, size)),
   123             mode_size: Some((mode, size)),
   132             mtime: Some(mtime),
   124             mtime: Some(mtime),