Reputation: 3162
How can I get list of files that were affected by specific user in the specified branch?
Regards, Evgeniy
Upvotes: 0
Views: 147
Reputation: 78330
This gets you a list of all files modified by user X on branch Y:
hg log --branch Y --user X --template '{join(files, "\n")}\n'
but it will have duplicate entries for files modified, added, or removed in multiple changesets on that branch. To consolidate them (on a unix-like you'd do):
hg log --branch Y --user X --template '{join(files, "\n")}\n'| sort -u
Update
If your Mercurial is to old for that fancy template to work you can probably do the same with this (if you're on a unix-like):
hg log --branch Y --user X --template '{files}\n' | tr ' ' '\n' | sort -u
Upvotes: 1