svn结帐深度 [英] svn checkout depth

查看:151
本文介绍了svn结帐深度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有这样的树的SVN项目:

I have an SVN project with tree like this:

/project
    /dir1
        /subdir1
           -file1
           -file2
            .....
        -file1
        -file2
        .....
    /dir2
        -file1
        -file2
        .....
    /dir3
        /subdir1
           -file1
           -file2
            .....
        /subdir2
           -file1
           -file2
            .....
        /subdir3
           -file1
           -file2
            .....
        /subdir4
           -file1
           -file2
            .....
    /dir4
        -file1
        -file2
        .....
-file1
-file2

我需要结帐

  • /project中的所有文件
  • 完整的/dir1
  • 完整的/dir2
  • 完整的/dir4
  • 在/dir3中,我只需要/subdir1和/subdir3

我可以使用svn命令行以某种深度检出这些文件/文件夹吗? 如果可以,我该怎么办? 签出后可以将subdir2添加到dir3吗? 如何更新以这种方式创建的工作副本?普通的"svn up"命令将仅更新这些文件夹,还是将执行项目的完整更新?

Can I checkout these files/folders using svn commandline with some kind of depth? If so how can I do it? Can I add subdir2 to dir3 after a checkout? How can I update working copy created this way? Will normal "svn up" command update only these folders or full update of project will be performed?

推荐答案

您需要的称为在您的情况下,您可以:

In your case you can:

svn co --depth files file:///project project
cd project
svn up --set-depth infinity dir1 dir2 dir4
svn up --set-depth empty dir3
svn up --set-depth infinity dir3/subdir1 dir3/subdir3

结帐后可以在sub3中添加subdir2吗?

Can I add subdir2 to dir3 after a checkout?

是:svn up --set-depth infinity dir3/subdir2

如何更新以这种方式创建的工作副本?会正常"svn起来" 仅更新这些文件夹的命令,否则将完全更新项目 表演?

How can I update working copy created this way? Will normal "svn up" command update only these folders or full update of project will be performed?

是的,svn up将仅更新这些文件和文件夹,即将保留更新深度.

Yes, svn up will update only these files and folders, that is update depth will be preserved.

这篇关于svn结帐深度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆