mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
mononoke: make some derived data mapping types comparable
Summary: It makes it a bit hard to do experiments and compare derivation results. It's easy to compare these types, so let's do it. Reviewed By: mitrandir77 Differential Revision: D31017823 fbshipit-source-id: 6173bba53c7ee254198e023dde57564fe9c3efed
This commit is contained in:
parent
66279b94a6
commit
ee516928a1
@ -22,7 +22,7 @@ use unodes::RootUnodeManifestId;
|
||||
use crate::derive_v1::derive_blame_v1;
|
||||
use crate::{BlameDeriveOptions, DEFAULT_BLAME_FILESIZE_LIMIT};
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub struct BlameRoot(ChangesetId);
|
||||
|
||||
impl From<ChangesetId> for BlameRoot {
|
||||
|
@ -26,7 +26,7 @@ use crate::batch_v2::derive_blame_v2_in_batch;
|
||||
use crate::derive_v2::derive_blame_v2;
|
||||
use crate::{BlameDeriveOptions, DEFAULT_BLAME_FILESIZE_LIMIT};
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub struct RootBlameV2 {
|
||||
csid: ChangesetId,
|
||||
root_manifest: RootUnodeManifestId,
|
||||
|
@ -44,7 +44,7 @@ pub enum ErrorKind {
|
||||
DeserializationError(String, String),
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub struct RootFastlog(ChangesetId);
|
||||
|
||||
impl From<ChangesetId> for RootFastlog {
|
||||
|
Loading…
Reference in New Issue
Block a user