bash - Using wget to "checkout" svn repository -


i have poorly laid out svn repository don't have permission re-structure. there several subprojects spread across repo @ various depths repository root. want able check out of trunks (but not branch or tag folders) regardless of depth at. figure problem wget solve. initial use of wget looked this:

wget -r -x 'tags' -i "base/of/repo" "http://www.urlrepo.com/" 

a few issues ran while running command:

  1. wget still grabbed tags folder though thought -x flag should exclude them
  2. the downloaded files placed folder "base/of/repo", isn't terrible, nice not save path

thoughts?

you can recursively bash , svn using sparse checkout.

something like:

svn co --depth immediates svn://repo/trunk 

then on each subfolder, if 'tags':

svn --set-depth empty tags 

else:

svn --set-depth infinity dirname 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -