How to archive / export all files modified from a specific version using Mercurial?

Mercurial supports a convenient archive command that allows you to export all files, as they were in a particular version (thanks Ry4an for pointing this out in the comment), to another file in the / zip folder, etc. This is done as follows:

hg archive -r REV destination

Is there a way to export only files modified from a specific version to the head?

Thanks Boaz

+5
source share
1 answer

, . , , , , , X Y, :

hg grep -r X:Y --all . | cut -d : -f 1 | sort -u | sed 's/^/-I /' | xargs echo hg archive
+1

All Articles