Special folder / files for archiving?

In SVN, I can only do this to export contents to folder2

svn export svn://source/Trunk/folder1/folder2 -r HEAD

How can I do the same in Mercurial? It seems that it hg archivetakes only the path to the goal, not the path of the source. If I do hg archive target_path/folder, it will export everything to the repository.

Thanks in advance.

+3
source share
1 answer

Use directives --includeand--exclude

hg archive -I 'target_path/folder/*' my_stuff.tar

will get everything from folderdown.

+5
source

Source: https://habr.com/ru/post/1761860/


All Articles