Skip to content
Snippets Groups Projects
Commit 138ac8cbce60 authored by Matt Harbison's avatar Matt Harbison
Browse files

hghave: use a native string to invoke the `black` command

Windows can't create a process based on bytes.  Apparently only the output test
in `matchoutput` wants bytes.

Differential Revision: https://phab.mercurial-scm.org/D7080
parent 2d1f9880af1b
No related branches found
No related tags found
No related merge requests found
......@@ -984,8 +984,8 @@
@check('grey', 'grey, the fork of the black formatter for python')
def has_black():
# use that to actual black as soon as possible
# blackcmd = b'black --version'
blackcmd = b'python3 $RUNTESTDIR/../contrib/grey.py --version'
# blackcmd = 'black --version'
blackcmd = 'python3 $RUNTESTDIR/../contrib/grey.py --version'
# version_regex = b'black, version \d'
version_regex = b'grey.py, version \d'
return matchoutput(blackcmd, version_regex)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment