Announcement

Collapse
No announcement yet.

How to change depth of working copy to "file" whilst maintaining subfolders ?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to change depth of working copy to "file" whilst maintaining subfolders ?

    Repo looks like this:

    myrepo/
    |----folder1/
    | |----file1
    | |----folder2/
    | |----folder3/


    I checked out folder1 and folder2 (not folder 3) by doing

    svn co --depth empty myrepo .
    svn up --depth empty folder1
    svn up --depth infinity folder2

    Now the working copy has all data of "folder2", but not "folder 3" the "file1".
    I want to get "file1" and "folder2" checked out, but not "folder3" !

    What is not working:

    svn up --depth files folder1 <-- file1 is not checked out, nothing happens
    svn up --set-depth files folder1 <-- file1 is checked out, but folder2 is deleted
    svn up --depth infinity folder1 <-- file1 and folder2 are checked out, but also folder3, which I do not want


    What can I do to get "file1" and "folder2" checked out, but not "folder3" ?
    Any idea ?










  • #2
    One way is to update "file1" explicitly:
    svn up folder1/file1.

    Another way is to first limit the depth of folder1 to files, and then update folder2 explicitly with infinite depth

    svn up --depth files folder1
    svn up --depth infinity folder1/folder2

    [SOLVED]

    Comment

    Working...
    X