Specify dot as a revision in Mercurial

谁都会走 提交于 2019-12-24 03:13:18

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/31180438/specify-dot-as-a-revision-in-mercurial

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!