# HG changeset patch # User Benoit Boissinot # Date 1134614291 21600 # Node ID dd186cb70a649e23a6453aef4041851f60529ce7 # Parent 1d7d0c07e8f38005e779adb41eda042251c0c40c quote the filename when calling HGEDITOR diff -r 1d7d0c07e8f3 -r dd186cb70a64 mercurial/ui.py --- 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)