[PATCH 1 of 5] ui: use ui out descriptor when calling util.system

Adrian Buehlmann adrian at cadifra.com
Thu Jul 7 07:35:23 UTC 2011


On 2011-06-24 18:32, Idan Kamara wrote:
> # 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()

Probably matches with the new
http://mercurial.selenic.com/bts/issue2888



More information about the Mercurial-devel mailing list