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
--includeand--excludedirectiveswill get everything from
folderon down.