SVN checkout ignore folder

前端 未结 10 1809
孤城傲影
孤城傲影 2020-11-30 17:52

Can I ignore a folder on svn checkout? I need to ignore DOCs folder on checkout at my build server.

edit: Ignore externals isn\'t an option. I have

10条回答
  •  没有蜡笔的小新
    2020-11-30 18:31

    I found this question looking for a way to check out the WebKit sources while excluding the regression tests. I ended up with the following:

    svn checkout http://svn.webkit.org/repository/webkit/trunk WebKit \
      --depth immediates
    
    cd WebKit
    find . \
      -maxdepth 1 -type d \
      -not -name '.*' \
      -not -name '*Tests' \
      -not -name 'Examples' \
      -not -name 'Websites' \
      | (while read SUBDIR; do svn update --set-depth infinity "$SUBDIR"; done)
    

    Note you can change the exclusions as you see fit, but .* is recommended to skip the working directory (which is already up to date) and all of the .svn directories.

提交回复
热议问题