ui: use ui out descriptor when calling util.system stable
authorIdan Kamara <idankk86@gmail.com>
Fri, 24 Jun 2011 17:04:37 +0300
branchstable
changeset 14738 bcc1a9fd0b8c
parent 14737 b39ed8c8e5e5
child 14739 a95efd378641
ui: use ui out descriptor when calling util.system
mercurial/ui.py
--- 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()