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

  • Home
  • SEARCH
  • 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 6636019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:07:53+00:00 2026-05-25T23:07:53+00:00

We realized that we would like some work in the trunk to have actually

  • 0

We realized that we would like some work in the trunk to have actually have been in a branch. We would like several commits to go into a branch, and preferably, we would preserve the history of the commits. So:

r0 --- r1 --- r2 --- r3

would become

          branch --- r2 --- r3
         /
r0 --- r1 ----- *

Where “*” is where we will start making new commits to the trunk. I’m nervous that I’ll destroy our repository if I do something incorrectly. Please advise, thank you!

  • 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-25T23:07:54+00:00Added an answer on May 25, 2026 at 11:07 pm

    Basically the current status of trunk is good for the branch, so you should just do a server-side svn copy from trunk to the desired branches subdirectory:

    svn copy svn://path/to/trunk svn://path/to/branches/foo -m "Creating branch Foo"
    

    Then you would need to revert trunk to r1, which is easily achieved by either applying a reverse patch from r1 to r3 or by actually using svn merge:

    svn merge r3:r1 svn://path/to/trunk
    

    EDIT: Actually, there’s a better solution here: How do I properly branch post-commit and revert the trunk in svn?

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

Sidebar

Related Questions

I just realized that in some place in my code I have the return
I have been getting into RIA services because I thought it would simplify dealing
i want to realize a construct in MS SQL that would look like this
I realized that I can have problems with single quotes in php arrays: <?php
Some days ago I realized that PrintWriter (as well as PrintStream ) never throw
Today I realized that I no longer have a Web Content Form option (where
OK, I have my site going pretty well here: http://www.marioplanet.com But I've realized that
I have been in the process of upgrading a Spring MVC app that was
I recently realized that some countries display floating point numbers with different comma/period notation.
Assuming you have been involved in an open source project (GPL'ed) that has been

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.