rust/hg-core/src/lib.rs
changeset 42303 e240bec26626
parent 42302 d1786c1d34fa
child 42327 e8f3740cc067
equal deleted inserted replaced
42302:d1786c1d34fa 42303:e240bec26626
     6 extern crate memchr;
     6 extern crate memchr;
     7 
     7 
     8 mod ancestors;
     8 mod ancestors;
     9 pub mod dagops;
     9 pub mod dagops;
    10 pub use ancestors::{AncestorsIterator, LazyAncestors, MissingAncestors};
    10 pub use ancestors::{AncestorsIterator, LazyAncestors, MissingAncestors};
    11 pub mod testing;  // unconditionally built, for use from integration tests
    11 mod dirstate;
    12 pub mod discovery;
    12 pub mod discovery;
       
    13 pub mod testing; // unconditionally built, for use from integration tests
       
    14 pub use dirstate::{
       
    15     pack_dirstate, parse_dirstate, CopyVec, CopyVecEntry, DirstateEntry,
       
    16     DirstateParents, DirstateVec,
       
    17 };
    13 
    18 
    14 /// Mercurial revision numbers
    19 /// Mercurial revision numbers
    15 ///
    20 ///
    16 /// As noted in revlog.c, revision numbers are actually encoded in
    21 /// As noted in revlog.c, revision numbers are actually encoded in
    17 /// 4 bytes, and are liberally converted to ints, whence the i32
    22 /// 4 bytes, and are liberally converted to ints, whence the i32
    18 pub type Revision = i32;
    23 pub type Revision = i32;
    19 
       
    20 
    24 
    21 /// Marker expressing the absence of a parent
    25 /// Marker expressing the absence of a parent
    22 ///
    26 ///
    23 /// Independently of the actual representation, `NULL_REVISION` is guaranteed
    27 /// Independently of the actual representation, `NULL_REVISION` is guaranteed
    24 /// to be smaller that all existing revisions.
    28 /// to be smaller that all existing revisions.