Howto checkout a specific changeset?
Thomas Arendsen Hein
thomas at intevation.de
Fri Sep 9 09:43:32 CDT 2005
* Manfred Lotz <manfred.lotz at arcor.de> [20050909 11:43]:
> On Fri, 9 Sep 2005 10:55:12 +0200
> Manfred Lotz <manfred.lotz at arcor.de> wrote:
> > But I couldn't figure out how to checkout an older changeset into a
> > working directory.
> Oops. Sorry.
> I guess I found it by myself, e.g. hg revert -r 5
hg revert only updates the working directory, but not the dirstate
information, so e.g. 'hg diff' will now show the differences between
revision 5 and whatever was checked out before.
Use 'hg update 5' (and maybe add the -C option if some files
don't get updated) to really do a checkout of this revision.
Email: thomas at intevation.de
More information about the Mercurial