What is preferred way to undo add?

TK Soh teekaysoh at gmail.com
Tue Jun 6 14:17:39 CDT 2006


On 6/6/06, Bryan O'Sullivan <bos at serpentine.com> wrote:
> On Mon, 2006-06-05 at 09:23 -0500, TK Soh 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), but I am worry
> > each time I have to deal with hg revert. I just don't feel that it's
> > as safe as it should have been.
>
> Why?  What do you think is missing?

$ hg st -m
M file1
M file2
[many other files...]
$ hg rev
reverting file1
reverting file2
[many other files...]

Adding those new options should fix it, assuming hg revert does
nothing by default.


More information about the Mercurial mailing list