Mercurial > public > mercurial-scm > hg-stable
diff mercurial/patch.py @ 7319:eae1767cc6a8
export: fixed silent output file overwriting
hg export -o outfile 1 2 3 4 had the same effect as hg -o outfile 4
This was caused by opening with 'w' instead of 'a'. This only occurs when
the filename pattern resulted in ambiguous patch filenames.
author | Ronny Pfannschmidt <Ronny.Pfannschmidt@gmx.de> |
---|---|
date | Thu, 06 Nov 2008 11:17:38 +0100 |
parents | b6f5490effbf |
children | 72f0e4ebd9e6 |
line wrap: on
line diff
--- 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)