py3: use '%s' instead of %r in hgext/convert/subversion.py
authorPulkit Goyal <pulkit@yandex-team.ru>
Sat, 13 Oct 2018 03:58:20 +0300
changeset 40215 4d6019c0e0ef
parent 40214 b456b2e0ad9f
child 40216 c17d73bf6a4d
py3: use '%s' instead of %r in hgext/convert/subversion.py Using '%r' on bytes in python 3 adds b'' prefixes to output which is bad. I don't see a reason why we want to repr() the string here, so just switched to '%s'. This fixes some output failure in one of the subversion test. Differential Revision: https://phab.mercurial-scm.org/D5026
hgext/convert/subversion.py
--- a/hgext/convert/subversion.py	Sat Oct 13 03:46:57 2018 +0300
+++ b/hgext/convert/subversion.py	Sat Oct 13 03:58:20 2018 +0300
@@ -1138,7 +1138,7 @@
                 path = os.path.realpath(path)
                 if os.path.isdir(os.path.dirname(path)):
                     if not os.path.exists(os.path.join(path, 'db', 'fs-type')):
-                        ui.status(_('initializing svn repository %r\n') %
+                        ui.status(_("initializing svn repository '%s'\n") %
                                   os.path.basename(path))
                         commandline(ui, 'svnadmin').run0('create', path)
                         created = path
@@ -1149,7 +1149,7 @@
 
             wcpath = os.path.join(encoding.getcwd(), os.path.basename(path) +
                                 '-wc')
-            ui.status(_('initializing svn working copy %r\n')
+            ui.status(_("initializing svn working copy '%s'\n")
                       % os.path.basename(wcpath))
             self.run0('checkout', path, wcpath)