Fwd: What is preferred way to undo add?

Benoit Boissinot bboissin at gmail.com
Mon Jun 5 08:40:47 CDT 2006


(forgot to cc the list)

---------- Forwarded message ----------
From: Benoit Boissinot <bboissin at gmail.com>
Date: Jun 5, 2006 3:39 PM
Subject: Re: What is preferred way to undo add?
To: Neal Becker <ndbecker2 at gmail.com>


On 6/5/06, Neal Becker <ndbecker2 at gmail.com> wrote:
> If I did add but not yet commit, what is the 'best' way to undo the add?

revert

(we probably should add a -a/-d flag for revert, just like status to
only match files
with certains status, so you would ending up doing 'hg revert -a/--added')

regards,

Benoit


More information about the Mercurial mailing list