hg revert confusion
George Garvey
tmwg-hg at inxservices.com
Tue Jul 12 20:27:52 UTC 2005
On Tue, Jul 12, 2005 at 12:35:46PM -0700, Matt Mackall wrote:
> On Tue, Jul 12, 2005 at 11:17:19AM -0700, George Garvey wrote:
> > Introduced a bug in project under hg. The only way I could find to
> > check out old versions was hg clone; followed by hg revert.
>
> You want hg update <revision>.
I thought I tried that and it didn't work, but I'll verify that.
Okay, I see what the problem is. I used hg update wrongly. I used "hg
update -r17", instead of "hg update 17".
Now that I look forther, that is actually documented, just not in
hg help.
Sorry for the noise. I can't believe how long this took just
because I expected hg update to take a -r option instead of a version
argument.
I admit to being quite confused about how to use some of the hg
commands. I forgot the man page had more information.
>
> > It appears that hg revert silently changes the working copy with
> > each invocation with a differ rev as option.
>
> You command, it obeys.
Don't mind the silence, just a description, not a complaint.
>
> > But: I never could find a way to tell which rev the working copy
> > was, by using hg itself. I just had to know.
>
> hg parents.
Yes, you're right: that works with hg update, although not with
revert, which does makes sense.
More information about the Mercurial
mailing list