生成在HG版本之间更改的文件的列表 [英] Generating a list of which files changed between hg versions

查看:32
本文介绍了生成在HG版本之间更改的文件的列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Mercurial的给定目录中生成两个版本之间的文件更改列表.

I want to generate a list of which files changed between two revisions in a given directory in Mercurial.

特别是,我对更改不感兴趣,但是对该目录中的哪些文件进行了更改.

In particular, I am not interested in what changed, but which files changed in that directory.

例如,假设在thenotherthen之间,仅更改了2个文件:

E.g., supposing that between then and otherthen, only 2 files changed:

>hg hypothetical-command -r then:otherthen
foo.baz
bar.baz
>

假设的命令是什么?我已经尝试了diff和log,但是我看不出如何说服他们这样做:要么我得到了patch(diff),要么我得到了整个repo(log).

What's the hypothetical command? I've tried diff and log, but I can't see how to convince them to do it: either I get the patch(diff), or I get the whole repo(log).

推荐答案

hg status --rev x:y

其中xy是所需的修订号(或标记或分支名称).

where x and y are desired revision numbers (or tag or branch names).

如果您在Windows中使用终端,请添加hg status --rev x:y > your-file.txt 将列表保存到文件中.

If you are using the terminal in windows add hg status --rev x:y> your-file.txt to save the list to a file.

这篇关于生成在HG版本之间更改的文件的列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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