Can you do a partial checkout with Subversion?

后端 未结 7 677
傲寒
傲寒 2020-11-28 01:20

If I had 20 directories under trunk/ with lots of files in each and only needed 3 of those directories, would it be possible to do a Subversion checkout with only those 3 di

相关标签:
7条回答
  • 2020-11-28 01:52

    If you already have the full local copy, you can remove unwanted sub folders by using --set-depth command.

    svn update --set-depth=exclude www
    

    See: http://blogs.collab.net/subversion/sparse-directories-now-with-exclusion

    The set-depth command support multipile paths.

    Updating the root local copy will not change the depth of the modified folder.

    To restore the folder to being recusively checkingout, you could use --set-depth again with infinity param.

    svn update --set-depth=infinity www
    
    0 讨论(0)
提交回复
热议问题