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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:31:31+00:00 2026-05-12T11:31:31+00:00

I have a branch which I created from the trunk some time ago. Since

  • 0

I have a branch which I created from the trunk some time ago. Since I created the branch, I didn’t touch the trunk. Now, I want to return from the branch to the trunk. This is a very simple case, since there’s not much merging to do. Nothing changed in the trunk. The branch can fully replace the trunk.

As I see it, I have two options:

  1. Delete the trunk (rename it to something else, delete it later) and rename the branch to be the trunk.
  2. Merge the branch to the trunk (move my working copy to the trunk and use the Merge command from the branch).

I’m not sure which option is preferred. It is important for me to maintain the revision context (not to break the revision graph).

Any thoughts?

  • 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-12T11:31:31+00:00Added an answer on May 12, 2026 at 11:31 am

    You really should use the merge option. The argument of loosing revision information as all changes will be inside 1 commit is negligible, as subversions merge-tracking will preserve this information. If you still have a pre-1.5 installation, you can note the revision range and the branch-path in your commit message.

    As you did not change anything in trunk, the merge will be a no-brainer, as you just say:

    svn merge branchname <Workingcopy-Path>
    

    (Of course your Working copy should point to trunk)

    Answers to your comment

    svn 1.4 has no merge tracking, so you should not rollback

    Why you should not rename branch to trunk:

    This is just not the way you should work In your simple setup this would be working, however, your trunk will be deleted and all files will be added again, but you cannot easily track the changed files, as in your action all files were added.

    If you merge, only files you changed in branch will be displayed as modified.

    Also all workingcopys from old trunk will be invalidated(as you work alone, this may not be important), so you need to check out them again.

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

Sidebar

Related Questions

We have an SVN setup with stable trunk and unstable development branch. Dev work
A new branch from master is created, we call it test . There are
My development team has worked with subversion for quite some time. The way that
I have the following problem using subversion: I'm currently working on the trunk of
I've been using StarTeam for version control for some time, but am moving to
I have copied /trunk/project_a to /branches/project_a/test_1 . However, I have not yet committed the
I have these two github repos, on both of which I'm an admin: https://github.com/ripper234/osqa
I have 2 local git archives in /a and in /b which were cloned
At work we have a very large code-base that we commonly export for a
I have been working on standardizing the source control structure for our Team Foundation

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.