mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
[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:
parent
33cf8f401d
commit
f1b5405ae9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user