Show More
@@ -1,6 +1,6 b'' | |||||
1 | use crate::errors::HgError; |
|
1 | use crate::errors::HgError; | |
|
2 | use crate::revlog::Revision; | |||
2 | use crate::revlog::{Node, NodePrefix}; |
|
3 | use crate::revlog::{Node, NodePrefix}; | |
3 | use crate::revlog::{Revision, NULL_REVISION}; |
|
|||
4 | use crate::revlog::{Revlog, RevlogEntry, RevlogError}; |
|
4 | use crate::revlog::{Revlog, RevlogEntry, RevlogError}; | |
5 | use crate::utils::hg_path::HgPath; |
|
5 | use crate::utils::hg_path::HgPath; | |
6 | use crate::vfs::Vfs; |
|
6 | use crate::vfs::Vfs; | |
@@ -51,9 +51,6 b' impl Changelog {' | |||||
51 | &self, |
|
51 | &self, | |
52 | rev: Revision, |
|
52 | rev: Revision, | |
53 | ) -> Result<ChangelogRevisionData, RevlogError> { |
|
53 | ) -> Result<ChangelogRevisionData, RevlogError> { | |
54 | if rev == NULL_REVISION { |
|
|||
55 | return Ok(ChangelogRevisionData::null()); |
|
|||
56 | } |
|
|||
57 | self.entry_for_rev(rev)?.data() |
|
54 | self.entry_for_rev(rev)?.data() | |
58 | } |
|
55 | } | |
59 |
|
56 |
General Comments 0
You need to be logged in to leave comments.
Login now