In SVN, I can do this to only export contents in folder2
svn export svn://source/Trunk/folder1/folder2 -r HEAD
How can I do the same in Mercurial? It seems that hg archive only accepts the target path not the source path. If I do hg archive target_path/folder it will export everything in the repository.
Thanks in advance.
Use the --include and --exclude directives
hg archive -I 'target_path/folder/*' my_stuff.tar
will get everything from folder on down.
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