本文介绍了如何获得在两个任意变更集之间修改的文件的列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我唯一的猜测是这样的恐怖:
My only guess is something horrible like this:
# files where something has been added
hg diff -r AA -r BB|grep -- +++|cut -f1|cut -d/ -f2- >/tmp/ka
# files where something has been removed
hg diff -r AA -r BB|grep -- ---|cut -f1|cut -d/ -f2- >>/tmp/ka
# filtering out "dev/null": it appears when a file is added or removed from the repository
sort -u /tmp/ka |grep -v dev/null
我需要的是在变更集AA和变更集BB之间修改的文件.类似于hg diff -r AA -r BB
,但仅文件名,而不是整个差异.
What I need is the files modified between changeset AA and changeset BB. Something like hg diff -r AA -r BB
but file names only, instead of a whole diff.
也许我没有注意到一个水手命令?我要检查的变更集不是连续的,否则我可以只使用hg status
.
否单个变更集的修改文件.
我需要这样做,因为我正在和一些青铜时代的程序员一起工作,他们不懂什么.diff是什么,请多多包涵...
Maybe there's a mercurial command I didn't notice? The changesets I want to examine are not consecutive, otherwise I could have just used hg status
.
NOT the modified files of a single changeset.
edit: I need to do this because I'm working with some programmers from the Bronze Age who don't understand what a .diff is, please bear with me...
推荐答案
hg diff -r 182 -r 193 --stat
或
hg status --rev 182:193
这篇关于如何获得在两个任意变更集之间修改的文件的列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!