sapling/eden/fs/config
Saul Gutierrez 26b1e9eb41 symlinks: add gating for TreeEntry:: getType and TreeEntry:: getDtype
Summary:
The methods mentioned in the title changed a bit on Windows, now allowing them to respond that a TreeEntry can be a symlink.

In order to gate this change, on Windows now there is a helper method that is used for reverting the changes for `TreeEntry:: getType` to its previous behavior, in order to be able to tell whether symlinks are enabled for the current Eden checkout or not. Where possible, (which is in most places) the config for whether symlinks are enabled or not on the Eden checkout is passed down.

The non-gated changes are kept since in those cases we actually want to register that a TreeEntry is actually a symlink, even when symlinks are "not enabled".

Originally this was intended to be part of D44218035, but was split for clarity.

Reviewed By: xavierd

Differential Revision: D47326228

fbshipit-source-id: be6cfae6626bf3a32aa119d25bf8b5fe6a549898
2023-07-14 08:42:03 -07:00
..
test pass folly::File by value instead of r-value reference 2023-04-24 19:11:42 -07:00
types create a -types crate for Thrift-generated types 2023-07-12 07:12:07 -07:00
CachedParsedFileMonitor.h pass folly::File by value instead of r-value reference 2023-04-24 19:11:42 -07:00
Cargo.toml create a -types crate for Thrift-generated types 2023-07-12 07:12:07 -07:00
CheckoutConfig.cpp symlinks: add gating for Windows symlinks on EdenFS 2023-06-27 13:11:01 -07:00
CheckoutConfig.h symlinks: add gating for TreeEntry:: getType and TreeEntry:: getDtype 2023-07-14 08:42:03 -07:00
CMakeLists.txt fs: fix license header 2022-01-04 15:00:07 -08:00
ConfigSetting.h add a ConfigSource layer of indirection between EdenConfig and the toml files 2023-01-04 12:53:34 -08:00
ConfigSource.h add a ConfigSource layer of indirection between EdenConfig and the toml files 2023-01-04 12:53:34 -08:00
ConfigVariables.cpp move variable substitution into its own type 2022-12-08 17:11:17 -08:00
ConfigVariables.h move variable substitution into its own type 2022-12-08 17:11:17 -08:00
eden_config.thrift rename ConfigSource to ConfigSourceType 2022-12-10 05:09:52 -08:00
EdenConfig.cpp add etc eden dir flag to daemon invocation of redirect fixup 2023-02-14 12:29:56 -08:00
EdenConfig.h migrate ObjectFetchContext to ProcessId 2023-07-13 09:43:19 -07:00
FieldConverter.cpp remove a use of toAppend in ChronoParse.h 2023-07-11 18:41:45 -07:00
FieldConverter.h config: allow unordered_set in config 2023-04-21 08:27:20 -07:00
FileChangeMonitor.cpp compare config files with platform-independent logic 2022-12-09 13:10:45 -08:00
FileChangeMonitor.h add a ConfigSource layer of indirection between EdenConfig and the toml files 2023-01-04 12:53:34 -08:00
HgObjectIdFormat.cpp remove the ability to generate and store new proxy hashes 2022-10-04 15:06:11 -07:00
HgObjectIdFormat.h remove the ability to generate and store new proxy hashes 2022-10-04 15:06:11 -07:00
MountProtocol.cpp rename the config for the hg object id format 2022-03-03 17:17:25 -08:00
MountProtocol.h config: fix use of uninitialized member in testharness 2022-07-14 12:46:22 -07:00
ParentCommit.cpp Persist the in-progress checkout pid 2022-06-28 12:50:37 -07:00
ParentCommit.h Persist the in-progress checkout pid 2022-06-28 12:50:37 -07:00
ReaddirPrefetch.cpp rewrite readdir prefetching logic 2023-01-04 19:17:36 -08:00
ReaddirPrefetch.h rewrite readdir prefetching logic 2023-01-04 19:17:36 -08:00
ReloadableConfig.cpp add a ConfigSource layer of indirection between EdenConfig and the toml files 2023-01-04 12:53:34 -08:00
ReloadableConfig.h remove some legacy atomic<time_point> junk 2023-01-04 12:53:34 -08:00
thrift_build.rs create a -types crate for Thrift-generated types 2023-07-12 07:12:07 -07:00
thrift_lib.rs move autocargo up one level (#101) 2022-02-08 06:07:52 -08:00
TomlConfig.h migrate fs/config to std::string_view 2022-12-10 05:09:52 -08:00
TomlFileConfigSource.cpp add a ConfigSource layer of indirection between EdenConfig and the toml files 2023-01-04 12:53:34 -08:00
TomlFileConfigSource.h add a ConfigSource layer of indirection between EdenConfig and the toml files 2023-01-04 12:53:34 -08:00