[PATCH] export: make -o foo overwrite, not append

Jordi Gutiérrez Hermoso jordigh at octave.org
Fri Oct 5 09:22:18 CDT 2012

On 4 October 2012 17:10, Kevin Bullock
<kbullock+mercurial at ringworld.org> wrote:

> I suspect that we actually want to do something more nuanced here.
> If we only have a single output file, we may want to keep the
> current append behavior (or might not, in which case we still want
> to preserve the ability to export multiple changesets to a single
> file). But for multiple files (i.e., multiple changes being exported
> AND a parameterized OUTFILESPEC), we probably want to either abort
> or overwrite.
> Am I correct in that assessment?

This sounds correct, but more annoying to implement. Can I just
document the current behaviour for now and let someone else decide if
they want to do something else?

- Jordi G. H.

More information about the Mercurial-devel mailing list