Change depth in existing SVN working copy without redownloading

后端 未结 5 852
走了就别回头了
走了就别回头了 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条回答
  •  时光说笑
    2020-12-25 12:32

    I had the same problem, but what you wrote doesn't seem be possible in SVN 1.7, since the metadata format looks different.

    Here's what I ended up doing (using the directories in your situation). First, I copied project1 and project2 somewhere safe.

    svn co --depth immediates svn_url/projects 
    

    This checks out projects with empty directories project1 and project2. I then delete the empty folders and put the actual directories in their place. SVN gives me some weird messages but it seems to work and allows me to commit. (It does not work with --depth empty and then copying the folders in, but immediates seems to work.)

    I agree this situation is not ideal, but that's why I'm switching to Git for future projects! I've used SVN for a long time, but it is getting beyond hope.

提交回复
热议问题