sapling/eden/fs/config/MountProtocol.h
Chad Austin 48a2a801f7 rename the config for the hg object id format
Summary:
There will be two embedded hg object ID formats, so a single boolean
is not sufficient. Introduce an enumeration to prepare for the
intermediate representation.

Reviewed By: kmancini

Differential Revision: D33200681

fbshipit-source-id: 6ecc1488ef000fd3707f2f07094d7940e4a67d39
2022-03-03 17:17:25 -08:00

31 lines
627 B
C++

/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This software may be used and distributed according to the terms of the
* GNU General Public License version 2.
*/
#pragma once
#include "eden/fs/config/FieldConverter.h"
namespace facebook::eden {
enum class MountProtocol {
FUSE,
PRJFS,
NFS,
};
template <>
class FieldConverter<MountProtocol> {
public:
folly::Expected<MountProtocol, std::string> fromString(
folly::StringPiece value,
const std::map<std::string, std::string>& convData) const;
std::string toDebugString(MountProtocol value) const;
};
} // namespace facebook::eden