# HG changeset patch # User Georges Racinet # Date 2019-01-23 12:39:27 # Node ID 2f54f31c41aa452415fa61a73f0e23a601cfb23c # Parent 26ee61c33dee366576a0f7266fea9834985e78ec rust: working directory revision number constant This introduces the constant, but does not use it anywhere yet. diff --git a/rust/hg-core/src/lib.rs b/rust/hg-core/src/lib.rs --- a/rust/hg-core/src/lib.rs +++ b/rust/hg-core/src/lib.rs @@ -16,6 +16,12 @@ pub type Revision = i32; pub const NULL_REVISION: Revision = -1; +/// Same as `mercurial.node.wdirrev` +/// +/// This is also equal to `i32::max_value()`, but it's better to spell +/// it out explicitely, same as in `mercurial.node` +pub const WORKING_DIRECTORY_REVISION: Revision = 0x7fffffff; + /// The simplest expression of what we need of Mercurial DAGs. pub trait Graph { /// Return the two parents of the given `Revision`.