Change depth in existing SVN working copy without redownloading

后端 未结 5 875
走了就别回头了
走了就别回头了 2020-12-25 12:12

I have a working copy of an entire SVN repository, but I want to change it into a sparse working copy because of disk space issues.

One way to do this would be:

5条回答
  •  Happy的楠姐
    2020-12-25 12:36

    I ended up hacking it:

    • Manually edit the depth setting to "immediates" for projects *.
    • Hard delete (not SVN delete) all children of projects except project1 and project2
    • svn up projects

    [*] To do this, open up projects/.svn/entries in a text editor and change

    b125e325-6f7c-4931-9942-d1ea1ea1441a
    X
    

    into

    b125e325-6f7c-4931-9942-d1ea1ea1441a
    
    
    
    
    
    
    
    immediates
    X
    

    Note: That UUID-looking line is probably different per repo, and X is actually hex value 0x0C which I can't get displayed here on SO.

提交回复
热议问题