Proposal: hg unadd (was Re: What is preferred way to undo add? )
Sébastien Pierre
sebastien at xprima.com
Tue Jun 6 14:15:49 CDT 2006
Le mardi 06 juin 2006 à 11:29 -0700, Bryan O'Sullivan a écrit :
> On Mon, 2006-06-05 at 08:59 -0600, Ed Santiago wrote:
>
> > How about "hg unadd"?
>
> -1
>
> The reason is that this proliferates commands needlessly. If unadd is
> good, why not also have unremove, uncopy, and unrename?
A possible approach would be that every undoable command could declare
its "undo" name.
remove -> unremove
and then display both the do and undo command in the commands list:
(un)remove remove the specified files on the next commit
alternatively, we could provide a generic "undo" command that could be
used as:
undo remove
undo add
...
which is something that would limit command clutter, and provide helpful
functionality.
-- Sébastien
More information about the Mercurial
mailing list