如何查看Mercurial文件的修订历史记录? [英] How to view revision history for Mercurial file?

查看:90
本文介绍了如何查看Mercurial文件的修订历史记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于Mercurial存储库中的给定文件,您如何查看修订历史记录?

For a given file in a Mercurial repository, how can you see the revision history?

又如何区分文件的两个修订版本?

And how can you diff two revisions of the file?

理想情况下,这是使用可视化工具完成的(我们使用ExamDiff进行其他一些比较).

Ideally doing all this with visual tools (we use ExamDiff to do some other diffs).

我会说这是基本的源代码控制功能,但我似乎无法弄清楚如何使用Mercurial.

I'd say this is basic source control functionality but I can't seem to figure out how to do this with Mercurial.

推荐答案

hg log file

hg diff -r 10 -r 20 file

这篇关于如何查看Mercurial文件的修订历史记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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