Using '..' to refer to parent revision

Adrian Buehlmann adrian at cadifra.com
Mon May 12 11:37:37 CDT 2008


On 12.05.2008 00:00, Julian Cowley wrote:
> 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)

That's documented in the hg(1) man page, in section
"SPECIFYING SINGLE REVISIONS":

'''
The reserved name "." indicates the working directory parent. If
no working directory is checked out, it is equivalent to null.
If an uncommitted merge is in progress, "." is the revision of
the first parent.
'''

See http://www.selenic.com/mercurial/wiki/index.cgi/ManPages


More information about the Mercurial mailing list