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 174683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:33:58+00:00 2026-05-11T13:33:58+00:00

We have several large subprojects inside our main SVN project root. I commit and

  • 0

We have several large subprojects inside our main SVN project root.
I commit and merge only my subproject when working with our release branches, mainly because it’s faster.

However, a colleague pointed out this reference to merging subdirectories in Version Control with Subversion (a.k.a ‘The SVN Book’):

  • For long-lived release branches (as described in the section called “Common Branching Patterns”), perform merges only on the root of the branch, not on subdirectories.

Unfortunately, this is the extent of the warning. The linked section does not give an explanation either.

Is committing and merging SVN subdirectories harmful for release branches?
What about short-lived feature branches?

  • 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. 2026-05-11T13:33:59+00:00Added an answer on May 11, 2026 at 1:33 pm

    One possible explanation is that you could forget parts of a change set.

    If the change sets that you are merging cover files that are outside the subdirectory that you have checked out, then there is always the possibility that you will forget to merge those files.

    For example, if you have a commit like this on trunk:

    r5 | rich | 2009-04-16 22:22:46 +0200 (Thu, 16 Apr 2009) | 2 lines Changed paths:    M /trunk/subdir1/main.c    M /trunk/subdir2/main.c  Change some stuff 

    And you then have a checkout of subdir1 from your branch ‘stable’, then you could merge the change set r5 like this:

    $ svn co http://example.com/svn/branches/stable/subdir1 $ cd subdir1 $ svn merge -c 5 http://example.com/svn/trunk/subdir1 . --- Merging r5 into '.': U    main.c $ svn ci -m'Merged r5 from trunk' 

    But this will only merge half of revision 5. Worse still, if you go back and look at the log, it will now show this:

    $ svn log -g http://example.com/svn/ ... ------------------------------------------------------------------------ r5 | rich | 2009-04-16 22:22:46 +0200 (Thu, 16 Apr 2009) | 2 lines Changed paths:    M /trunk/subdir1/main.c    M /trunk/subdir2/main.c Merged via: r6  Change some stuff 

    So it looks like you’ve merged the whole commit, when in fact you have only merged some of it. Of course r6 does show that only 1 file has changed on the stable branch.

    ------------------------------------------------------------------------ r6 | rich | 2009-04-16 22:28:16 +0200 (Thu, 16 Apr 2009) | 1 line Changed paths:    M /branches/stable/subdir2    M /branches/stable/subdir2/main.c  Merge revision 5 from trunk 

    Someone has to remember, or notice, that only part of the change set got merged and the rest needs doing. Not using subdirectory merges avoids this problem.

    There are times when you really don’t want to merge all of a previous commit, and the above scenario is exactly what you intended to do. In that case, it is probably best to add a good commit message describing your intentions.

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

Sidebar

Ask A Question

Stats

  • Questions 118k
  • Answers 118k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Concurrency is when two or more tasks can start, run,… May 11, 2026 at 11:30 pm
  • Editorial Team
    Editorial Team added an answer The error number you quote in hex is 0xC0000005 which… May 11, 2026 at 11:30 pm
  • Editorial Team
    Editorial Team added an answer Does Fiddler do what you want? What is Fiddler? Fiddler… May 11, 2026 at 11:30 pm

Related Questions

We have a large project with several sub-projects. We're approaching a release of our
Just wondering if its possible to exclude large files or certian file types from
We have several .NET applications that monitor a directory for new files, using FileSystemWatcher.
I have large chunks of data, normally at around 2000+ entries, but in this

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.