changeset 14738:bcc1a9fd0b8c stable

ui: use ui out descriptor when calling util.system
author Idan Kamara <idankk86@gmail.com>
date Fri, 24 Jun 2011 17:04:37 +0300
parents b39ed8c8e5e5
children a95efd378641
files mercurial/ui.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/ui.py	Fri Jun 24 11:39:12 2011 -0400
+++ b/mercurial/ui.py	Fri Jun 24 17:04:37 2011 +0300
@@ -629,7 +629,8 @@
 
             util.system("%s \"%s\"" % (editor, name),
                         environ={'HGUSER': user},
-                        onerr=util.Abort, errprefix=_("edit failed"))
+                        onerr=util.Abort, errprefix=_("edit failed"),
+                        out=self.fout)
 
             f = open(name)
             t = f.read()