rust/hg-core/src/dirstate_tree/dispatch.rs
changeset 48045 32ef647821b2
parent 48023 357307feaf61
child 48047 9b2a51b2c36a
equal deleted inserted replaced
48044:d5528ac9b4f2 48045:32ef647821b2
    35 /// various information about the state of those files.
    35 /// various information about the state of those files.
    36 pub trait DirstateMapMethods {
    36 pub trait DirstateMapMethods {
    37     /// Remove information about all files in this map
    37     /// Remove information about all files in this map
    38     fn clear(&mut self);
    38     fn clear(&mut self);
    39 
    39 
    40     fn set_v1(&mut self, filename: &HgPath, entry: DirstateEntry);
    40     /// Add the given filename to the map if it is not already there, and
       
    41     /// associate the given entry with it.
       
    42     fn set_entry(&mut self, filename: &HgPath, entry: DirstateEntry);
    41 
    43 
    42     /// Add or change the information associated to a given file.
    44     /// Add or change the information associated to a given file.
    43     ///
    45     ///
    44     /// `old_state` is the state in the entry that `get` would have returned
    46     /// `old_state` is the state in the entry that `get` would have returned
    45     /// before this call, or `EntryState::Unknown` if there was no such entry.
    47     /// before this call, or `EntryState::Unknown` if there was no such entry.
   317 
   319 
   318     /// Used to set a value directory.
   320     /// Used to set a value directory.
   319     ///
   321     ///
   320     /// XXX Is temporary during a refactor of V1 dirstate and will disappear
   322     /// XXX Is temporary during a refactor of V1 dirstate and will disappear
   321     /// shortly.
   323     /// shortly.
   322     fn set_v1(&mut self, filename: &HgPath, entry: DirstateEntry) {
   324     fn set_entry(&mut self, filename: &HgPath, entry: DirstateEntry) {
   323         self.set_v1_inner(&filename, entry)
   325         self.set_entry(&filename, entry)
   324     }
   326     }
   325 
   327 
   326     fn add_file(
   328     fn add_file(
   327         &mut self,
   329         &mut self,
   328         filename: &HgPath,
   330         filename: &HgPath,