Proposal: hg unadd (was Re: What is preferred way to undo add? )

Benoit Boissinot bboissin at gmail.com
Mon Jun 5 10:42:31 CDT 2006


On 6/5/06, Ed Santiago <esm at edsantiago.com> wrote:
>   >hg forget has been deprecated, in favor of hg revert. I like the fact
>   >that there's one less command to learn (for new users)
>
> That's because "hg forget" didn't work well: new word, nonstandard,
> nonintuitive.
>
> How about "hg unadd"?  It is extremely simple, intuitive, and
> (should be) 100% safe.  It is a meaningful name, and one that
> some people would naturally try without even reading documentation.
>
> "hg unremove" could serve a similar purpose.
>
> The tradeoff is command clutter, but IMHO the benefit is much
> less user confusion.
>
It is probably preferable to only have one command to revert back to
the checkout'd state:

hg revert --add
hg revert --deleted
hg revert --modified

regards,

Benoit


More information about the Mercurial mailing list