comparison rust/hg-core/src/revlog/revlog.rs @ 45536:639f33f22faf

hg-core: add a `ListRevTrackedFiles` operation List files tracked at a given revision. Differential Revision: https://phab.mercurial-scm.org/D9014
author Antoine Cezar <antoine.cezar@octobus.net>
date Fri, 18 Sep 2020 16:52:16 +0200
parents 4f11a67a12fb
children 497657895b54
comparison
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.