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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:02:35+00:00 2026-05-10T18:02:35+00:00

I have some commits that I’ve decided, after the fact, are going to be

  • 0

I have some commits that I’ve decided, after the fact, are going to be more branch work then trunk work. How do I create the branch and revert the trunk while still ensuring merging isn’t painful later?

Is it as simple as copying the current trunk to a branch and reverting the trunk? Or will this create headaches later?

  • 1 1 Answer
  • 3 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-10T18:02:36+00:00Added an answer on May 10, 2026 at 6:02 pm

    I think Philips method would be something like the following, assuming the last ‘good’ revision was at 100 and you are now at 130, to create the new branch:

    svn copy -r100 svn://repos/trunk svn://repos/branches/newbranch svn merge -r 100:130 svn://repos/trunk svn://repos/branches/newbranch 

    Note the idea is to preserve the changes made in those revisions so you can apply them back to trunk.

    To revert trunk:

    svn merge -r130:100 . svn ci -m 'reverting to r100 (undoing changes in r100-130)' .  

    (It wouldn’t matter which order you performed these in, so you could revert trunk before creating the branch.)

    Then you could switch to the new branch you created in the repo:

    svn switch svn://repos/branches/newbranch workdir 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I create a new branch, do some commits and then merge the branche
In master I have some files that should better live in a feature branch.
I have some commits that I don't want in my project, but there's a
We have an SVN setup with stable trunk and unstable development branch. Dev work
We are going to use Git where I work, and we have some in
Let's say I have committed some bad changes to Subversion repository. Then I commit
I have some perl code that looks something like this: my @array = map
I have some input elements that the users are request special behavior on pageup
I have some UIViews that have different centers and transforms applied to them. I
I'd like to have some modifications that are private to my fork. How do

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.