[PATCH 1 of 5] ui: use ui out descriptor when calling util.system
Idan Kamara
idankk86 at gmail.com
Fri Jun 24 16:32:06 UTC 2011
# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1308924277 -10800
# Branch stable
# Node ID ed90e62dc97fcaa79c0ef79f045e039bffa90ad5
# Parent db9bf5bec86ff722a5a8f2227d2648839894631e
ui: use ui out descriptor when calling util.system
diff -r db9bf5bec86f -r ed90e62dc97f mercurial/ui.py
--- a/mercurial/ui.py Fri Jun 24 17:04:37 2011 +0300
+++ 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()
More information about the Mercurial-devel
mailing list