diff mercurial/ui.py @ 1882:c0320567931f

merge util.esystem and util.system.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Fri, 10 Mar 2006 22:42:59 -0800
parents 2e0fd78587bd
children 622ee75cb4c9
line wrap: on
line diff
--- a/mercurial/ui.py	Fri Mar 10 22:24:19 2006 -0800
+++ b/mercurial/ui.py	Fri Mar 10 22:42:59 2006 -0800
@@ -209,7 +209,9 @@
                   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),
+                    environ={'HGUSER': self.username()},
+                    onerr=util.Abort, errprefix=_("edit failed"))
 
         t = open(name).read()
         t = re.sub("(?m)^HG:.*\n", "", t)