Mercurial > hg
comparison rust/hg-core/src/revlog.rs @ 45526:26c53ee51c68
hg-core: Add a limited read only `revlog` implementation
Only covers the needs of the upcoming `rhg debugdata` command.
Differential Revision: https://phab.mercurial-scm.org/D8958
author | Antoine Cezar <antoine.cezar@octobus.net> |
---|---|
date | Fri, 04 Sep 2020 11:55:07 +0200 |
parents | 26114bd6ec60 |
children | c2317b7624fd |
comparison
equal
deleted
inserted
replaced
45525:590a840fa367 | 45526:26c53ee51c68 |
---|---|
6 //! Mercurial concepts for handling revision history | 6 //! Mercurial concepts for handling revision history |
7 | 7 |
8 pub mod node; | 8 pub mod node; |
9 pub mod nodemap; | 9 pub mod nodemap; |
10 pub use node::{Node, NodeError, NodePrefix, NodePrefixRef}; | 10 pub use node::{Node, NodeError, NodePrefix, NodePrefixRef}; |
11 pub mod index; | |
12 pub mod patch; | |
13 pub mod revlog; | |
11 | 14 |
12 /// Mercurial revision numbers | 15 /// Mercurial revision numbers |
13 /// | 16 /// |
14 /// As noted in revlog.c, revision numbers are actually encoded in | 17 /// As noted in revlog.c, revision numbers are actually encoded in |
15 /// 4 bytes, and are liberally converted to ints, whence the i32 | 18 /// 4 bytes, and are liberally converted to ints, whence the i32 |