/* * 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" include "eden/mononoke/mercurial/types/if/mercurial_thrift.thrift" # Memcache constants. Should be change when we want to invalidate memcache # entries const i32 MC_CODEVER = 3 const i32 MC_SITEVER = 0 union FilenodeInfoList { 1: list Data, 2: list Pointers, // This actual value is ignored 3: byte TooBig, } struct FilenodeInfo { // 1 was used previously. 2: required mercurial_thrift.HgNodeHash filenode, 3: optional mercurial_thrift.HgNodeHash p1, 4: optional mercurial_thrift.HgNodeHash p2, 5: optional FilenodeCopyFrom copyfrom, 6: required mercurial_thrift.HgNodeHash linknode, } struct FilenodeCopyFrom { 1: required mononoke_types_thrift.RepoPath path, 2: required mercurial_thrift.HgNodeHash filenode, }