[PATCH] mq: --keep default behaviour of qdelete

Dirkjan Ochtman dirkjan at ochtman.nl
Thu Oct 14 05:05:48 CDT 2010


On Thu, Oct 14, 2010 at 11:45, Erik Zielke <ez at aragost.com> wrote:
> # HG changeset patch
> # User Erik Zielke <ez at aragost.com>
> # Date 1286288142 -7200
> # Node ID 2088b605790bfbeb7e99b37b3de6baa59d8d5e2e
> # Parent  80a3d1121c106fd972fa84423f55b2ce2e9407c9
> mq: --keep default behaviour of qdelete.
>
> Changed qdelete so that keep is default behaviour, and renames the
> patch by appending .deleted to the patch file name.
>
> If a .deleted patch files of that name already exists, it will be
> deleted, and the new deleted patch will be renamed to that name.

Hmm, I don't really like it.

One the one hand, this helps people prevent losing their stuff (if
they invoke qdelete in a moment of insanity). On the other hand, it's
unbounded growth of the patches dir, which seems pretty ugly. For
people who want this, versioned MQs seem like the way to go (and
perhaps we should have a mode where each qref, qnew, qdel and qfin
gets qcommitted automatically).

Cheers,

Dirkjan


More information about the Mercurial-devel mailing list