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
This commit is contained in:
Thomas Orozco 2021-06-15 02:46:04 -07:00 committed by Facebook GitHub Bot
parent 7b8b559a05
commit e82c317c89

View File

@ -8,6 +8,7 @@
#pragma once
#include <folly/Range.h>
#include <folly/portability/GFlags.h>
#include <folly/portability/IOVec.h>
#include <optional>
#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