Patchwork D7079: py3: convert cwd to native string when running `fix`

login
register
mail settings
Submitter phabricator
Date Oct. 13, 2019, 2:31 a.m.
Message ID <differential-rev-PHID-DREV-jguowimzoyzgp7utxtl5-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/42281/
State Superseded
Headers show

Comments

phabricator - Oct. 13, 2019, 2:31 a.m.
mharbison72 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This prevents a bunch of failures on Windows.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D7079

AFFECTED FILES
  hgext/fix.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/fix.py b/hgext/fix.py
--- a/hgext/fix.py
+++ b/hgext/fix.py
@@ -631,7 +631,7 @@ 
             proc = subprocess.Popen(
                 procutil.tonativestr(command),
                 shell=True,
-                cwd=repo.root,
+                cwd=procutil.tonativestr(repo.root),
                 stdin=subprocess.PIPE,
                 stdout=subprocess.PIPE,
                 stderr=subprocess.PIPE,