D6759: run-tests: error out on `--local --with-[c]hg`
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Tue Aug 27 17:00:03 EDT 2019
Closed by commit rHGfb84730d1c5a: run-tests: error out on `--local --with-[c]hg` (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D6759?vs=16302&id=16324
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D6759/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D6759
AFFECTED FILES
tests/run-tests.py
CHANGE DETAILS
diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -493,6 +493,8 @@
sys.stderr.write('warning: --with-hg should specify an hg script\n')
sys.stderr.flush()
if options.local:
+ if options.with_hg or options.with_chg:
+ parser.error('--local cannot be used with --with-hg or --with-chg')
testdir = os.path.dirname(_bytespath(canonpath(sys.argv[0])))
reporootdir = os.path.dirname(testdir)
pathandattrs = [(b'hg', 'with_hg')]
To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list