[sampling] rename HG_SAMPLING_FILEPATH to SCM_SAMPLING_FILEPATH

Summary: The scm wrappers is agnostic of which scm.  Technically, we could implement the same functionality in git.

Test Plan: run with the wrappers

Reviewers: lcharignon

Reviewed By: lcharignon

Subscribers: mitrandir, mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D3465938

Signature: t1:3465938:1466550871:912a627d114961b76ef605c89ccfcc75b6665664
This commit is contained in:
Tony Tung 2016-06-22 00:06:52 -07:00
parent 33cf8f401d
commit f1b5405ae9

View File

@ -23,7 +23,7 @@ def _parentfolderexists(f):
os.path.exists(os.path.dirname(os.path.normpath(f))))
def _getcandidatelocation(ui):
for candidatelocation in (os.environ.get("HG_SAMPLING_FILEPATH", None),
for candidatelocation in (os.environ.get("SCM_SAMPLING_FILEPATH", None),
ui.config("sampling", "filepath", "")):
if _parentfolderexists(candidatelocation):
return candidatelocation