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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:56:50+00:00 2026-05-16T23:56:50+00:00

I have a repository for one of my projects that has a nested repository

  • 0

I have a repository for one of my projects that has a nested repository using the svn:externals property to update files from an external library. The problem is that I need to comment out one of the function declarations from one of the headers in this library, and carry around the modified header with the root repository.

Is there a way that this could be done, so that when the library is updated, it overrides that specific file with my version of it?

  • 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-05-16T23:56:50+00:00Added an answer on May 16, 2026 at 11:56 pm

    What you want sounds like a “vendor branch” scenario to me.

    current repository

    root
    |-- myproject
        |
        -- mycode
        |
        -- library -> svn:externals to a remote svn or your own libraryproject
    

    suggested repository

    root
    |-- myproject
        |
        -- mycode
        |
        -- library -> copied/branched from ^/vendor/library/current (modified at this location as much as you like)
    
    |
    -- vendor
       |
       --library
         |
         --current
         |
         --imported-version-1.0
         |
         --imported-version-1.1
    

    How to create the layout

    Create ^/vendor/library/current and DOWNLOAD the original unmodified library code into it.

    svn commit ^/vendor/library/current
    svn cp ^/vendor/library/current ^/vendor/library/imported-version-1.0 (tag the import)
    svn cp ^/vendor/library/current ^/myproject/library (branch the code into your project)
    

    modify ^/myproject/library and commit


    How to update the library without losing your modifications

    Download the latest original release of the library into ^/vendor/library/current OVERWRITING files.

    svn commit ^/vendor/library/current (checks in the difference between the two library releases)
    svn cp ^/vendor/library/current ^/vendor/library/imported-version-1.1 (tag the change)
    cd /your-local-workspace/myproject/library (will be merge target)
    svn merge ^/vendor/library/current (get all CHANGES from the upstream branch and apply them to your modified library)
    svn commit
    

    profit


    Instead of branching “current” directly into your project you could branch to a “my-modified-libs” directory and make use of it via externals. This would be advised if you have multiple projects that need the same modified version of a library.

    Keep in mind that vendor branches will have problems dealing with renames and deletes as those can not be tracked by overwriting. Cross-repository merging is a different and rather young topic for SVN.

    If you try it out, give us feedback how it went 🙂

    Christoph

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

Sidebar

Related Questions

I have an SVN repository that has multiple projects inside of it, each one
We have a 3.5 Gb SVN repository recently migrated from a 6 Gb one.
I have a large Hg repository (2+GB) that was converted from an svn repository.
I'm using Visual SVN on my Windows Box. I have Repository Application , which
I have a system that has three applications (one windows application and two web
In my company we are using one SVN repository to hold our C++ code.
I have 5-10 independent projects that I want place under version control using Git.
Eclipse has a nice feature I'm using - check out maven projects from SCM
I am using Nhibernate for my ORM. I have a class Control that has
I would like to use SVN externals to share code files between different projects.

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.