Using '..' to refer to parent revision
Julian Cowley
julian at lava.net
Sun May 11 22:00:41 UTC 2008
There are several ways I know of to refer to a revision:
- by revision number
- by changeset ID
- by tag
- by branch name
- by the keyword 'tip'
- by the keyword 'null'
- by the symbol '.'
Concerning that last item, I don't know if it is documented anywhere (I
found it by guessing), but I find it useful in diff commands, such as:
hg diff -r . -r tip
I was just thinking that having a '..' would be really useful (assuming
there's only one parent). Then one could do something like:
hg diff -r ..
hg up ..
Perhaps there is another way to do this?
--
The revolution has been cancelled due to low ratings.
More information about the Mercurial
mailing list