changeset 276:b45bae16be32

clone: Fix url-escaping for new config parser
author Augie Fackler <durin42@gmail.com>
date Fri, 24 Apr 2009 20:26:00 -0500
parents 68aea59116b6
children 3848a7f9b983
files wrappers.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/wrappers.py
+++ b/wrappers.py
@@ -213,7 +213,7 @@ def clone(orig, ui, source, dest=None, *
             fp = repo.opener("hgrc", "w", text=True)
             fp.write("[paths]\n")
             # percent needs to be escaped for ConfigParser
-            fp.write("default = %(url)s\nsvn = %(url)s\n" % {'url': svnurl.replace('%', '%%')})
+            fp.write("default = %(url)s\nsvn = %(url)s\n" % {'url': svnurl})
             fp.close()
             if (res is None or res == 0) and not opts.get('noupdate', False):
                 commands.update(ui, repo, repo['tip'].node())