changeset 1569:dd186cb70a64

quote the filename when calling HGEDITOR
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Wed, 14 Dec 2005 20:38:11 -0600
parents 1d7d0c07e8f3
children 6a104941d56a
files mercurial/ui.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/ui.py	Thu Dec 01 10:51:45 2005 -0600
+++ b/mercurial/ui.py	Wed Dec 14 20:38:11 2005 -0600
@@ -145,7 +145,7 @@
                   os.environ.get("EDITOR", "vi"))
 
         os.environ["HGUSER"] = self.username()
-        util.system("%s %s" % (editor, name), errprefix=_("edit failed"))
+        util.system("%s \"%s\"" % (editor, name), errprefix=_("edit failed"))
 
         t = open(name).read()
         t = re.sub("(?m)^HG:.*\n", "", t)