Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/patch.py @ 4124:ef4c1cd6f4e4
Let patch.export handle any fp-like object
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Thu, 01 Mar 2007 20:53:38 -0800 |
parents | 226df1808f16 |
children | ef7c39ae5d4c |
line wrap: on
line diff
--- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -610,7 +610,7 @@ def export(repo, revs, template='hg-%h.p if not fp: fp = cmdutil.make_file(repo, template, node, total=total, seqno=seqno, revwidth=revwidth) - if fp not in (sys.stdout, repo.ui): + if hasattr(fp, 'name'): repo.ui.note("%s\n" % fp.name) fp.write("# HG changeset patch\n")