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
- If a changeset affects multiple files, they all appear on the same line.
- 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
精彩评论