开发者

How to get list of files that were affected since a specific revision in Mercurial

How do I get a list of all files affected in a changeset since rev 3456?

Note: I tried hg log --rev 3456:tip --template "{files}"\n but there are several problems

  1. If a changeset affects multiple files, they all appear on the same line.
  2. This also shows the same file multiple times if a file was involv开发者_运维问答ed in many changsets.


hg stat --rev 3456

hg stat --rev 3456:tip to exclude uncommitted changes


There's a previous question that covers the same issue, with the added restriction that the search be restricted to files belonging to 'myself.' You can simply remove the '--user' and it should do what you need.


create a file named "mystyle"

changeset = "{files}"
file="{file}\n"

Then hg log --style mystyle --rev 3456:tip | sort | unique

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜