From e82c317c8915593a385fbed991874016aba45f70 Mon Sep 17 00:00:00 2001 From: Thomas Orozco Date: Tue, 15 Jun 2021 02:46:04 -0700 Subject: [PATCH] eden: move declare hgPath, hgPythonPath in HgImporter.h Summary: I'd like to be able to override this from unit tests. The underlying goal is to let us make this path absolute in unit tests, so that we can make Eden unit tests that rely on hgPath work on Buck v2, where paths are relative. xavierd suggested overriding the glfag would be the easiest course of action so that's what this does. Reviewed By: xavierd Differential Revision: D29060827 fbshipit-source-id: c4084072e3eef9cc5c9d404d10b3e19028f177ea --- eden/fs/store/hg/HgImporter.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eden/fs/store/hg/HgImporter.h b/eden/fs/store/hg/HgImporter.h index 6cfd4bfd88..9c6f4b00fc 100644 --- a/eden/fs/store/hg/HgImporter.h +++ b/eden/fs/store/hg/HgImporter.h @@ -8,6 +8,7 @@ #pragma once #include +#include #include #include #include "eden/fs/utils/SpawnedProcess.h" @@ -16,6 +17,9 @@ #include "eden/fs/telemetry/EdenStats.h" #include "eden/fs/utils/PathFuncs.h" +DECLARE_string(hgPath); +DECLARE_string(hgPythonPath); + namespace folly { class IOBuf; } // namespace folly