rust/hg-core/src/revlog/revlog.rs
changeset 45536 639f33f22faf
parent 45534 4f11a67a12fb
child 45595 497657895b54
equal deleted inserted replaced
45535:72b7d58d6e35 45536:639f33f22faf
   186         let patch = patch::fold_patch_lists(&patches);
   186         let patch = patch::fold_patch_lists(&patches);
   187         Ok(patch.apply(&snapshot))
   187         Ok(patch.apply(&snapshot))
   188     }
   188     }
   189 
   189 
   190     /// Return the revlog index.
   190     /// Return the revlog index.
   191     fn index(&self) -> Index {
   191     pub fn index(&self) -> Index {
   192         let is_inline = self.data_bytes.is_none();
   192         let is_inline = self.data_bytes.is_none();
   193         Index::new(&self.index_bytes, is_inline)
   193         Index::new(&self.index_bytes, is_inline)
   194     }
   194     }
   195 
   195 
   196     /// Return the revlog data.
   196     /// Return the revlog data.