mercurial/cmdutil.py
changeset 14637 5e9d691229d5
parent 14635 217b7d83afc3
child 14638 1bdbca0b6604
--- a/mercurial/cmdutil.py	Wed Jun 08 14:54:52 2011 +0300
+++ b/mercurial/cmdutil.py	Wed Jun 08 14:54:52 2011 +0300
@@ -160,7 +160,7 @@
     writable = mode not in ('r', 'rb')
 
     if not pat or pat == '-':
-        fp = writable and sys.stdout or sys.stdin
+        fp = writable and repo.ui.fout or repo.ui.fin
         return os.fdopen(os.dup(fp.fileno()), mode)
     if hasattr(pat, 'write') and writable:
         return pat