sapling/eden/mononoke/reachabilityindex/if/skiplist.thrift
Lukasz Piatkowski 542d1f93d3 Manual synchronization of fbcode/eden and facebookexperimental/eden
Summary:
This commit manually synchronizes the internal move of
fbcode/scm/mononoke under fbcode/eden/mononoke which couldn't be
performed by ShipIt automatically.

Reviewed By: StanislavGlebik

Differential Revision: D19722832

fbshipit-source-id: 52fbc8bc42a8940b39872dfb8b00ce9c0f6b0800
2020-02-11 11:42:43 +01:00

39 lines
859 B
Thrift

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This software may be used and distributed according to the terms of the
* GNU General Public License version 2.
*/
include "eden/mononoke/mononoke_types/if/mononoke_types_thrift.thrift"
struct SkiplistEntry {
1: RepoId repo_id,
2: mononoke_types_thrift.ChangesetId cs_id,
3: GenerationNum gen,
4: SkiplistNodeType node_type,
}
typedef i32 RepoId (rust.newtype)
// Thrift does not support unsigned, so using i64 here
typedef i64 GenerationNum (rust.newtype)
struct CommitAndGenerationNumber {
1: mononoke_types_thrift.ChangesetId cs_id,
2: GenerationNum gen,
}
struct SkipEdges {
1: list<CommitAndGenerationNumber> edges,
}
struct ParentEdges {
1: list<CommitAndGenerationNumber> edges,
}
union SkiplistNodeType {
1: SkipEdges SkipEdges,
2: ParentEdges ParentEdges,
}