将点指定为Mercurial中的修订 [英] Specify dot as a revision in Mercurial

查看:85
本文介绍了将点指定为Mercurial中的修订的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现了一些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?

推荐答案

hg help revisions说:

保留名称."指示工作目录的父目录.如果不 工作目录已签出,等效于null.如果 未提交的合并正在进行中.是第一个的修订版 父母.

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.

这篇关于将点指定为Mercurial中的修订的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆