Patchwork D7375: py3: replace "%r" by"'%s'% for py3-compatible (and clearer) quoting in chg

login
register
mail settings
Submitter phabricator
Date Nov. 13, 2019, 11:13 p.m.
Message ID <b98da2cb20fee9c5a595b4a8a1e30810@localhost.localdomain>
Download mbox | patch
Permalink /patch/43166/
State Not Applicable
Headers show

Comments

phabricator - Nov. 13, 2019, 11:13 p.m.
Closed by commit rHG975e517451a6: py3: replace &quot;%r&quot; by&quot;&#039;%s&#039;% for py3-compatible (and clearer) quoting in chg (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7375?vs=18056&id=18057

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

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

AFFECTED FILES
  mercurial/chgserver.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/chgserver.py b/mercurial/chgserver.py
--- a/mercurial/chgserver.py
+++ b/mercurial/chgserver.py
@@ -505,7 +505,7 @@ 
         path = self._readstr()
         if not path:
             return
-        self.ui.log(b'chgserver', b'chdir to %r\n', path)
+        self.ui.log(b'chgserver', b"chdir to '%s'\n", path)
         os.chdir(path)
 
     def setumask(self):