Mercurial命令行:如何显示特定版本的更改? [英] Mercurial commandline: How to show changes of a specific revision?

查看:79
本文介绍了Mercurial命令行:如何显示特定版本的更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将新的头拉到存储库中后,我想看看新头触摸了哪些文件.像hg status一样,但不切换到它.我不想要整个差异,只是一个概述.

After I pull a new head into my repository, I want to see what files are touched by the new head. Like an hg status but without changing over to it. I don't want the whole diff, just an overview.

我希望这是一个更普遍的问题的特定版本:我如何查看特定修订中的更改摘要?

Which I expect is a specific version of the more general question: how do i see a summary of the changes in a specific revision?

这是在命令行上,我不想启动TortoiseHG或其他GUI.

This is on the commandline, I don't want to fire up TortoiseHG or some other GUI.

推荐答案

status命令向您显示哪些文件已更改.使用

The status command shows you which files are changed. Use

hg status --rev .:tip

将工作副本父版本(当前签出的版本)与最新版本进行比较.

to compare the working copy parent revision (the currently checked out revision) with the tip revision.

如果拉了多个变更集,则与

If you've pulled more than one changeset, then this is different from

hg status --change tip

该命令仅显示tip变更集所涉及的文件,而不显示当前已签出的变更集(.)和tip之间的合并变更.

That command only shows the files touched by the tip changeset — not the combined changes between the currently checked out changeset (.) and tip.

这篇关于Mercurial命令行:如何显示特定版本的更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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