Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8286347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:43:20+00:00 2026-06-08T11:43:20+00:00

I have an SVN project with tree like this: /project /dir1 /subdir1 -file1 -file2

  • 0

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

I need to checkout

  • all files from /project
  • full /dir1
  • full /dir2
  • full /dir4
  • From /dir3 I need only /subdir1 and /subdir3

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T11:43:21+00:00Added an answer on June 8, 2026 at 11:43 am

    What you need is called sparse checkout.

    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
    

    Can I add subdir2 to dir3 after a checkout?

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

    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?

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

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a SVN project at work that looks like this: Repository project |--
I have a revision.txt file in my SVN project. Basically I want that this
We have an svn project that also has several plugins in vendor/plugins - all
I have two SVN repostitories: Project A trunk tags branches Project B trunk tags
I have tried to convert an SVN project to Mercurial using svnsync and then:
I try to update a project from SVN (I have a fresh install of
I have imported a JSF/Facelets project from SVN into Netbeans. Any change which I
I have two checkouts of one trunk of a project via SVN. One is
My scenario is such that I have a VB.NET project in SVN and I
should i after i have created a svn repo, import one project folder into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.