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

login
register
mail settings
Submitter phabricator
Date Oct. 13, 2019, 6:10 a.m.
Message ID <f9ce77d98d76e6cc82cd129bb2c0087d@localhost.localdomain>
Download mbox | patch
Permalink /patch/42284/
State Not Applicable
Headers show

Comments

phabricator - Oct. 13, 2019, 6:10 a.m.
Closed by commit rHG2d1f9880af1b: py3: convert cwd to native string when running `fix` (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7079?vs=17121&id=17124

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7079/new/

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

AFFECTED FILES
  hgext/fix.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers, indygreg
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,