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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:13:13+00:00 2026-05-10T17:13:13+00:00

The subversion concept of branching appears to be focused on creating an [un]stable fork

  • 0

The subversion concept of branching appears to be focused on creating an [un]stable fork of the entire repository on which to do development. Is there a mechanism for creating branches of individual files?

For a use case, think of a common header (*.h) file that has multiple platform-specific source (*.c) implementations. This type of branch is a permanent one. All of these branches would see ongoing development with occasional cross-branch merging. This is in sharp contrast to unstable development/stable release branches which generally have a finite lifespan.

I do not want to branch the entire repository (cheap or not) as it would create an unreasonable amount of maintenance to continuously merge between the trunk and all the branches. At present I’m using ClearCase, which has a different concept of branching that makes this easy. I’ve been asked to consider transitioning to SVN but this paradigm difference is important. I’m much more concerned about being able to easily create alternate versions for individual files than about things like cutting a stable release branch.

  • 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-10T17:13:13+00:00Added an answer on May 10, 2026 at 5:13 pm

    Sadly, I think the real answer here is that ClearCase handles this situation a lot better than Subversion. With subversion, you have to branch everything, but ClearCase allows a kind of ‘lazy branch’ idea that means only a certain group of files are branched, the rest of them still follow the trunk (or whichever branch you specify).

    The other solutions provided here don’t really work as you intend, they are just copying the file to a different path. Now you have to do odd things to actually use that file.

    Erm, sorry. That wasn’t really a very good answer. But there isn’t a good solution to this with Subversion. Its model is branch and merge.

    Edit: OK, so expanding on what crashmstr said. You could do this:

    svn cp $REP/trunk/file.h $REP/branched_files/file.h svn co $REP/trunk svn switch $REP/branched_files/file.h file.h 

    But wow!, is that prone to errors. Whenever you do a svn st you will see this:

    svn st     S  file.h 

    A bit noisy that. And when you want to branch a few files or modules within a large source repository it will start to get very messy.

    Actually, there’s probably a decent project in here for simulating something like ClearCase’s branched files with svn properties and switching, writing a wrapper around the bog standard svn client to deal with all the mess.

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

Sidebar

Ask A Question

Stats

  • Questions 65k
  • Answers 65k
  • 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
  • added an answer Yes, it is possible, but not terribly straightforward. The complicating… May 11, 2026 at 11:15 am
  • added an answer It is fine in hidden fields. It is only required… May 11, 2026 at 11:15 am
  • added an answer the .NET 2.0 sdk tool TLBIMP can create an assembly… May 11, 2026 at 11:15 am

Related Questions

The subversion concept of branching appears to be focused on creating an [un]stable fork
The subversion repository at work was set up without much planning as to its
If I am storing the Subversion user names and passwords for repository access in
On this page in the Subversion manual , it says that When you commit
Yesterday, I discovered the Subversion (SVN) blame feature, and I was wondering, is this
Well I've gotten myself in a pickle I did the subversion 1 click setup
Consider the following subversion directory structure /dir1/file.txt /dir2/file.txt I want to move the file.txt
EDIT : This question duplicates How to access the current Subversion build number? (Thanks
I want to checkout, and then update as necessary, the Django Subversion trunk on
Version Control with Subversion recommends the following layout for (single-project) repositories (complemented by 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.