Mercurial > public > mercurial-scm > hg-stable
diff rust/hg-core/src/revlog/mod.rs @ 51224:7434747343ab
rust-index: check that the entry bytes are the same in both indexes
This is a temporary measure to show that both the Rust and C indexes are
kept in sync.
Comes with some related documentation precisions.
For comparison of error cases, see `index_entry_binary()` in `revlog.c`.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Thu, 02 Nov 2023 11:16:13 +0100 |
parents | 13f58ce70299 |
children | 83de5a06f6eb |
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/mod.rs Sat Sep 30 16:15:56 2023 +0200 +++ b/rust/hg-core/src/revlog/mod.rs Thu Nov 02 11:16:13 2023 +0100 @@ -148,7 +148,9 @@ fn node(&self, rev: Revision) -> Option<&Node>; /// Return a [`Revision`] if `rev` is a valid revision number for this - /// index + /// index. + /// + /// [`NULL_REVISION`] is considered to be valid. fn check_revision(&self, rev: UncheckedRevision) -> Option<Revision> { let rev = rev.0;