My only guess is something horrible like this:
# 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
What I need is the files modified between changeset AA and changeset BB. Something like hg diff -r AA -r BB
but file names only, instead of a whole diff.
Maybe there's a mercurial command I didn't notice? The changesets I want to examine are not consecutive, otherwise I could have just used hg status
.
hg diff -r 182 -r 193 --stat
or
hg status --rev 182:193
The basic command to look for when you want to know something about file status is hg status
. The status command is the file name oriented command and you want to know some file names.
When you run it as
$ hg status
then it compares the working copy state with the working copy parent revision (.
). But if you run it as
$ hg status --rev AA:BB
then it will show files modified between AA
and BB
! No need for grepping, cutting, sorting or templates.
(I've explained this before here, here, and here, please see those questions and answers for more tips.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With