Marda
Marda

Reputation: 161

Specify dot as a revision in Mercurial

I have found some Mercurial commands where the revision is specified as a dot; for example:

hg revert --all -r .
hg update -C -r .
hg pull -r .

What is the meaning of this dot? To which revision does it correspond?

Upvotes: 3

Views: 403

Answers (1)

Christophe Muller
Christophe Muller

Reputation: 5090

hg help revisions says:

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.

In most cases it will be the revision you checked out.

Upvotes: 6

Related Questions