Submitter | phabricator |
---|---|
Date | Oct. 1, 2021, 3:46 p.m. |
Message ID | <differential-rev-PHID-DREV-pyndkn7bls2a3lcfx4ek-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/49872/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/rust/hg-core/src/revlog/revlog.rs b/rust/hg-core/src/revlog/revlog.rs --- a/rust/hg-core/src/revlog/revlog.rs +++ b/rust/hg-core/src/revlog/revlog.rs @@ -304,6 +304,10 @@ } impl<'a> RevlogEntry<'a> { + pub fn revision(&self) -> Revision { + self.rev + } + /// Extract the data contained in the entry. pub fn data(&self) -> Result<Cow<'_, [u8]>, RevlogError> { if self.bytes.is_empty() {