Until recently we have been using SVN for all projects of our web studio, and there is a very convenient feature present in several clients like Subversive and TortoiseSVN that can extract all files that have been changed in a certain revision.

Is there a way to do it in Mercurial? I don't care if it's done via a GUI or a command line, it's just very convenient to have a set of files that have been changed in a certain changeset.

P.S. I must have put it wrong the first time. I need more than just a list of files, it would be great to have all the files exported to some other folder.

It's worth noting that that only works if you have no spaces in filenames. If you made that blunder then we'll need to use hg status --print0 -r revision -r parent-of-revision instead, but hopefully that's not necessary.

Note also that the revision number, '4' in our example, shows up twice. The whole thing could very easily be wrapped in a shell script, and that would be parameterized so you don't have to remember to change it in both places.

you could also of course hg diff -r rev -r rev-1 which would be the same as the diff part of export
–
jk.Dec 18 '09 at 9:23

1

@jk, hg export is better than hg diff, as it eliminates the step of finding the parent changeset, which isn't always decremental (e.g. the numberings get messed up with merges and such).
–
notnoopDec 18 '09 at 9:36

2

@notnoop, you can use hg diff -c for that :)
–
tonfaDec 18 '09 at 11:17