D117: run-tests: warn if --color=always and no pygments installed
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Tue Jul 18 16:13:29 UTC 2017
martinvonz updated this revision to Diff 254.
martinvonz marked an inline comment as done.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D117?vs=228&id=254
REVISION DETAIL
https://phab.mercurial-scm.org/D117
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
@@ -413,6 +413,10 @@
parser.error('--chg does not work when --with-hg is specified '
'(use --with-chg instead)')
+ if options.color == 'always' and not pygmentspresent:
+ sys.stderr.write('warning: --color=always ignored because '
+ 'pygments is not installed\n')
+
global useipv6
if options.ipv6:
useipv6 = checksocketfamily('AF_INET6')
EMAIL PREFERENCES
https://phab.mercurial-scm.org/settings/panel/emailpreferences/
To: martinvonz, #hg-reviewers
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list