hg revert

Matt Mackall mpm at selenic.com
Sat Jul 2 22:18:28 UTC 2005


On Sat, Jul 02, 2005 at 11:02:16PM +0200, Thomas Arendsen Hein wrote:
> * Bryan O'Sullivan <bos at serpentine.com> [20050702 22:47]:
> > This patch adds the "hg revert" command.  It uses the same machinery as
> > the "update" command, only modifying it slightly to add a filtering
> > capability to hg.update.
> 
> I propose to combine 'update' and 'revert', though this means
> changing the usage of 'update' when specifying a revision, i.e. the
> -r flag has to be given.

No, this is mixing completely different semantics.

Update always operates tree-wide and always changes the parents and
of the working directory and may update the dirstate.

Revert operates on possibly just one file, never changes the parents
of the working directory, and never updates the dirstate.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial mailing list