D117: run-tests: warn if --color=always and no pygments installed

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Tue Jul 18 00:06:20 UTC 2017


martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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
@@ -421,6 +421,9 @@
         options.color = False
     else: # 'always', for testing purposes
         options.color = pygmentspresent
+        if not pygmentspresent:
+            sys.stderr.write('warning: --color=always ignored because'
+                             'pygments is not installed\n')
 
     global useipv6
     if options.ipv6:



EMAIL PREFERENCES
  https://phab.mercurial-scm.org/settings/panel/emailpreferences/

To: martinvonz, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list