如何检查我在 Mercurial 中处理的当前版本的存储库?



我知道我可以使用hg tip来检查本地存储库的最新版本。但是我不知道我签入了哪个版本,所以我需要检查它。我试着谷歌它,但没有找到正确的命令…

命令为:

hg parents [-r REV] [FILE]
show the parents of the working directory or revision

您可以运行hg help以获得可用命令的列表。

它喜欢运行hg summary,其中包括父:

$ hg summary --remote
parent: 1967:3ffa3a76de21 tip
 removed all source code
branch: new_one
commit: (clean)
update: (current)
remote: 1 or more incoming

您可以使用hg id来检测存储库的活动变更集

>hg id -nibt
ad4dd1a9ba66 38 default tip

如果更改集在更新时更改

>hg up -r 35
4 files updated, 0 files merged, 0 files removed, 0 files unresolved

id的核查

>hg id -nibt
8a72023d18d0 35 default

最新更新