changeset 73:77ae99e032f6

util, popen: redirect stderr as well (for hglib.init in case of error)
author Idan Kamara <idankk86@gmail.com>
date Mon, 26 Sep 2011 22:37:45 +0300
parents 15485fa4b35e
children a5dd7b5d0be1
files hglib/util.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hglib/util.py	Mon Sep 26 22:37:44 2011 +0300
+++ b/hglib/util.py	Mon Sep 26 22:37:45 2011 +0300
@@ -140,4 +140,5 @@
         environ.update(env)
 
     return subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
-                            close_fds=close_fds, env=environ)
+                            stderr=subprocess.PIPE, close_fds=close_fds,
+                            env=environ)