How to get a list of files that were affected after a specific check in Mercurial

How to get a list of all files affected in a changeset from version 3456?

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

  • If a set of changes affects several files, all of them are displayed on one line.
  • It also shows the same file several times if the file has been involved in many changes.
+5
source share
3 answers

hg stat --rev 3456

hg stat --rev 3456:tipto exclude uncommitted changes

+5
source

create a file called "mystyle"

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

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

+1
source

There is a previous question that covers the same issue, with the added restriction that the search will be limited to files that belong to me. You can simply remove the "-user" and it should do what you need.

+1
source

All Articles