mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
48a2a801f7
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
31 lines
627 B
C++
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
|