Mercurial > hg
diff hgext/convert/gnuarch.py @ 39826:c31ce080eb75
py3: convert arguments, cwd and env to native strings when spawning subprocess
This keeps Windows happy.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 23 Sep 2018 00:47:04 -0400 |
parents | a8a902d7176e |
children | 28626957395a |
line wrap: on
line diff
--- a/hgext/convert/gnuarch.py Fri Sep 21 21:14:27 2018 -0400 +++ b/hgext/convert/gnuarch.py Sun Sep 23 00:47:04 2018 -0400 @@ -17,6 +17,7 @@ from mercurial import ( encoding, error, + pycompat, ) from mercurial.utils import ( dateutil, @@ -201,7 +202,7 @@ cmdline += ['>', os.devnull, '2>', os.devnull] cmdline = procutil.quotecommand(' '.join(cmdline)) self.ui.debug(cmdline, '\n') - return os.system(cmdline) + return os.system(pycompat.rapply(procutil.tonativestr, cmdline)) def _update(self, rev): self.ui.debug('applying revision %s...\n' % rev)