Verification of one external in subversion, after --ignore-externals

So, let's say I have a code check that I used --ignore-externals initially. One of the directories has several large external elements.

After you checked my sparse copy, is there a way to get only one of these external ones? As far as I can tell, all I can do is svn up . and immediately extract everything external. --depth doesn't seem to work in this case, nor does svn up external_dir/ , since it does not exist yet. I even tried to fake it with mkdir external_dir/; svn up external_dir/ mkdir external_dir/; svn up external_dir/ , although I really did not expect it to work.

So, is it possible to get / update only one external, and not everything in the directory if it was originally ignored?

+4
source share
1 answer

So here is what I did: change the external ones, so only the one I want is specified, updated and returned.

 svn propset svn:externals "$(svn propget svn:externals . | grep external_foo)" . svn up . svn revert . 

Do not forget about the different periods that indicate the "current directory".

+3
source

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


All Articles