sapling/mononoke-types/mocks/contentid.rs
Siddharth Agarwal 782e18fe55 mercurial: add file node envelope
Summary:
We'd like to move away from `RawNodeBlob` and `RawCSBlob` to data structures
serialized by Thrift. This is the first step to doing that.

The most important thing here is that it reuses file content IDs from native
Mononoke storage.

Reviewed By: jsgf

Differential Revision: D7771990

fbshipit-source-id: de4ee0b56aa6610caeff84b2235e19855df086cb
2018-04-27 14:04:38 -07:00

27 lines
1.2 KiB
Rust

// Copyright (c) 2018-present, Facebook, Inc.
// All Rights Reserved.
//
// This software may be used and distributed according to the terms of the
// GNU General Public License version 2 or any later version.
use mononoke_types::ContentId;
use hash;
// Definitions for hashes 1111...ffff.
pub const ONES_CTID: ContentId = ContentId::new(hash::ONES);
pub const TWOS_CTID: ContentId = ContentId::new(hash::TWOS);
pub const THREES_CTID: ContentId = ContentId::new(hash::THREES);
pub const FOURS_CTID: ContentId = ContentId::new(hash::FOURS);
pub const FIVES_CTID: ContentId = ContentId::new(hash::FIVES);
pub const SIXES_CTID: ContentId = ContentId::new(hash::SIXES);
pub const SEVENS_CTID: ContentId = ContentId::new(hash::SEVENS);
pub const EIGHTS_CTID: ContentId = ContentId::new(hash::EIGHTS);
pub const NINES_CTID: ContentId = ContentId::new(hash::NINES);
pub const AS_CTID: ContentId = ContentId::new(hash::AS);
pub const BS_CTID: ContentId = ContentId::new(hash::BS);
pub const CS_CTID: ContentId = ContentId::new(hash::CS);
pub const DS_CTID: ContentId = ContentId::new(hash::DS);
pub const ES_CTID: ContentId = ContentId::new(hash::ES);
pub const FS_CTID: ContentId = ContentId::new(hash::FS);