/* * 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 HgObjectIdFormat { // We used to support a ProxyHash format that indexed through a LocalStore // keyspace in order to map fixed-size IDs onto variable-size HgBackingStore // IDs. // EdenFS will still read IDs of that format, but will not generate them. /// '1' followed by 20 bytes of hg manifest hash and then a path WithPath, /// '2' followed by 20 bytes of hg manifest hash HashOnly, }; template <> class FieldConverter { public: folly::Expected fromString( folly::StringPiece value, const std::map& convData) const; std::string toDebugString(HgObjectIdFormat value) const; }; } // namespace facebook::eden