diff -r 95e1260b8134 -r eae1767cc6a8 mercurial/patch.py --- a/mercurial/patch.py Thu Nov 06 10:39:52 2008 +0100 +++ b/mercurial/patch.py Thu Nov 06 11:17:38 2008 +0100 @@ -1294,7 +1294,8 @@ if not fp: fp = cmdutil.make_file(repo, template, node, total=total, - seqno=seqno, revwidth=revwidth) + seqno=seqno, revwidth=revwidth, + mode='ab') if fp != sys.stdout and hasattr(fp, 'name'): repo.ui.note("%s\n" % fp.name)