Mercurial > public > mercurial-scm > hg
comparison rust/hg-core/src/revlog.rs @ 46821:e8ae91b1a63d
rhg: raise wdir specific error for `hg debugdata`
Helps remove the conditional in `test-debugcommands.t` for rhg.
Differential Revision: https://phab.mercurial-scm.org/D10254
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Tue, 23 Mar 2021 19:58:49 +0530 |
parents | 645ee7225fab |
children | 4d2a5ca060e3 |
comparison
equal
deleted
inserted
replaced
46820:821929d59e01 | 46821:e8ae91b1a63d |
---|---|
33 /// This is also equal to `i32::max_value()`, but it's better to spell | 33 /// This is also equal to `i32::max_value()`, but it's better to spell |
34 /// it out explicitely, same as in `mercurial.node` | 34 /// it out explicitely, same as in `mercurial.node` |
35 #[allow(clippy::unreadable_literal)] | 35 #[allow(clippy::unreadable_literal)] |
36 pub const WORKING_DIRECTORY_REVISION: Revision = 0x7fffffff; | 36 pub const WORKING_DIRECTORY_REVISION: Revision = 0x7fffffff; |
37 | 37 |
38 pub const WORKING_DIRECTORY_HEX: &str = | |
39 "ffffffffffffffffffffffffffffffffffffffff"; | |
40 | |
38 /// The simplest expression of what we need of Mercurial DAGs. | 41 /// The simplest expression of what we need of Mercurial DAGs. |
39 pub trait Graph { | 42 pub trait Graph { |
40 /// Return the two parents of the given `Revision`. | 43 /// Return the two parents of the given `Revision`. |
41 /// | 44 /// |
42 /// Each of the parents can be independently `NULL_REVISION` | 45 /// Each of the parents can be independently `NULL_REVISION` |