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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:28:04+00:00 2026-06-01T21:28:04+00:00

A switch went wrong and I committed some files to a a different branch

  • 0

A switch went wrong and I committed some files to a a different branch instead of the trunk; yet some other dirs made it to the trunk.

How do I revert the branch to its previous state?

I went into the branch and wanted to reverse merge:

/fnord/foo/thisFolderShouldNotBeHereButInTrunk

svn merge -r 5651:5650 fnord/foo/
--- Reverse-merging r5651 into '.':
   C foo
Summary of conflicts:
  Tree conflicts: 1

This folder was added by the commit. It should have been added in the trunk though. And I did exactly that already. Was that my mistake?

How do I resolve this?

  • 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-06-01T21:28:06+00:00Added an answer on June 1, 2026 at 9:28 pm

    A half switched checkout happens sometimes. Usually when the switch aborts halfway of you switch just one file or folder in stead of the entire working copy.

    A mistake like this is best fixed manually. Just switch the entire working copy to the branch and remove the folder(s) yourself using svn remove and commit that change to the branch. You can then switch back to trunk and add the directory there by hand or merge the revision that added the folder(s) to the branch by mistake.

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

Sidebar

Related Questions

How do you switch between header (.h) and implementation files (.cpp) in Eclipse when
I have recently started studying Google Web Toolkit. I have went through some walkthroughs,
Because of some In Proc problems I try to switch to SQL State session.
I have an issue using the svn switch command where I have committed to
What went wrong with the Microsoft Visual Studio team, for them to remove the
I want to Switch from Web Designer to Front End Developer or web developer
I want to switch over to Mono from .Net (plus Visual Studio to whatever
I have a switch statement similar to this one: switch (number) { case 1:
How would one switch a public bool to true from a child form in
how do i switch on an enum which have the flags attribute set (or

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.