Suppress <stdout> before hg export -v (regression from previous patch).
authorBrendan Cully <brendan@kublai.com>
Fri, 02 Mar 2007 14:03:30 -0800
changeset 4125 ef7c39ae5d4c
parent 4124 ef4c1cd6f4e4
child 4126 b9dcee25be8e
Suppress <stdout> before hg export -v (regression from previous patch).
mercurial/patch.py
--- a/mercurial/patch.py	Thu Mar 01 20:53:38 2007 -0800
+++ b/mercurial/patch.py	Fri Mar 02 14:03:30 2007 -0800
@@ -610,7 +610,7 @@
         if not fp:
             fp = cmdutil.make_file(repo, template, node, total=total,
                                    seqno=seqno, revwidth=revwidth)
-        if hasattr(fp, 'name'):
+        if fp != sys.stdout and hasattr(fp, 'name'):
             repo.ui.note("%s\n" % fp.name)
 
         fp.write("# HG changeset patch\n")