diff mercurial/hg.py @ 7048:25961e53a07f

merge with -stable
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Mon, 22 Sep 2008 14:47:21 +0200
parents 7e5f3480c45b e51c0f41f271
children 6788608627c4
line wrap: on
line diff
--- a/mercurial/hg.py	Wed Sep 17 22:15:36 2008 +0200
+++ b/mercurial/hg.py	Mon Sep 22 14:47:21 2008 +0200
@@ -223,7 +223,8 @@
         if dest_repo.local():
             fp = dest_repo.opener("hgrc", "w", text=True)
             fp.write("[paths]\n")
-            fp.write("default = %s\n" % abspath)
+            # percent needs to be escaped for ConfigParser
+            fp.write("default = %s\n" % abspath.replace('%', '%%'))
             fp.close()
 
             if update: