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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:42:59+00:00 2026-05-12T07:42:59+00:00

A few weeks ago I started making a change in my SVN repository’s trunk

  • 0

A few weeks ago I started making a change in my SVN repository’s trunk that I thought was going to be fairly minor.

After a few hours of work, realizing that the change had bigger implications than I thought, I decided it was too risky to check my changes into the trunk right away, so I made a branch, like this:

svn copy . https://my_svn_server/svn/blah/branches/my-branch

… and then did a svn switch and happily continued working in that branch. So far, so good, until I get to the point where I’m happy with all the changes and want to merge them back into the trunk again. So I check in all the changes into my-branch, and then carefully follow the procedure shown here … and here is where I ran into trouble. Because I created my-branch from the local (client-side) repository that already had a large number of (not-checked-in) changes outstanding in it, the merge doesn’t include the diffs corresponding to those changes, and thus there are lots and lots of conflicts in the merge that I have to resolve by hand — something I don’t want to do since it leaves room for bugs to creep in if I mess it up.

I tried including the missing diffs by decrementing the revision number I specify during the merge, e.g. by doing a

svn merge -r2818:2932 https://my_svn_server/svn/blah/branches/my-branch

instead of the expected

svn merge -r2819:2932 https://my_svn_server/svn/blah/branches/my-branch

…but that didn’t work, because my-branch didn’t exist at revision 2818, and so I just get an error:

svn: Unable to find repository location for 'https://my_svn_server/svn/blah/branches/my-branch' in revision 2818

So that’s about where things stand. I can manually sort out the mess this time, but I’m curious if there is a way to handle this so that things go better for me next time.

One way I can think of would be to create my-branch not by copying the local (client-side) respository but rather by making a copy of the SVN trunk HEAD, and then checking out my-branch into a separate directory, and then manually copying my local (not-checked-in) changes from the trunk directory to the my-branch directory, and then reverting the local trunk directly… but that’s pretty tedious and error-prone as well.

Surely there is a better, more automatic way to make a branch that contains local (not-checked-in) changes, and later merge it back into the trunk?

  • 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-12T07:42:59+00:00Added an answer on May 12, 2026 at 7:42 am

    Your last suggestion is almost there. When you want to branch, copy the trunk HEAD. Then in your working copy,

    svn switch https://my_svn_server/svn/blah/branches/my-branch
    

    This will switch you to the branch, while keeping all your local modifications. You can then commit your changes to the branch whenever you want to.

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

Sidebar

Related Questions

No related questions found

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.