Mercurial > public > mercurial-scm > hg
diff rust/hg-core/src/revset.rs @ 47968:6f579618ea7b
rust: Rename the `Revlog::get_node_rev` method to `rev_from_node`
This better describes the input and outputs of this method.
Also rewrite the doc-comment, which seemed to have been left from copy-paste
of another method.
Differential Revision: https://phab.mercurial-scm.org/D11415
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Tue, 14 Sep 2021 18:10:35 +0200 |
parents | 8c29af0f6d6e |
children | ddde80830aea |
line wrap: on
line diff
--- a/rust/hg-core/src/revset.rs Tue Sep 14 18:07:11 2021 +0200 +++ b/rust/hg-core/src/revset.rs Tue Sep 14 18:10:35 2021 +0200 @@ -61,7 +61,7 @@ { return Err(RevlogError::WDirUnsupported); } - return revlog.get_node_rev(prefix); + return revlog.rev_from_node(prefix); } Err(RevlogError::InvalidRevision) }