我唯一的猜测是这样可怕的事情:
# 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
但仅是文件名,而不是整个差异。
也许有一个我没有注意到的善变命令?我想要检查的变更集不是连续的,否则我可以直接使用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
or
hg status --rev 182:193
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)