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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:55:16+00:00 2026-06-15T06:55:16+00:00

I am working on a code usually in trunk but due to recent changes

  • 0

I am working on a code usually in trunk but due to recent changes I had to switch my workspace to a branch.

Is it possible to commit any change in the trunk while working in a branch without actually switching the project to trunk

I basically want to commit changes in both trunk and branch without switching back and forth again and again

  • 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-15T06:55:17+00:00Added an answer on June 15, 2026 at 6:55 am

    The short answer: No

    This is why God created svn switch in the first place. It allows you to change your underlying branch of your working directory without losing your work.

    Think of it this way: How many times has a developer broke something because they’ve said to themselves “Hey, I don’t have to test this. It’s a minor change”?

    Even if Subversion allowed you to do what you want, it would still be a bad idea. You’d basically be making changes in a codebase with no real way of making sure they work in the first place. This is why Subversion requires you to have a working directory before you can make changes*. How would you test your changes?

    If you don’t want to use svn switch because you don’t want to lose your work, you could do the following:

    • Copy your entire working directory to another location, then use svn switch on one to make that trunk.
    • Finish your work on your branch. Commit the changes and note the revision number. Now, either do a svn co or svn switch to get a trunk working copy. Then use svn merge -r to merge your changes into trunk. And, of course, test your changes before committing them.

    *Subversion does allow mkdir, cp, mv, and rm to work directly upon a URL, but that’s mainly to allow you to manipulate branches without having to create a working directory.

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

Sidebar

Related Questions

I had an idea while I was working on some PHP code. Usually, if
Usually I hear about code working under things apart from IE but Ive got
I have this working code, but now i need to be able to change
Possible Duplicate: xcode code sense color/completion not working Code loses syntax color in Xcode
I know people complain usually about scripts not working, but here is a case
I'm using Entity Framework Code First. Usually I have no problem, but for a
I had a working project. After rearranging some code, I tried to recompile my
I'm porting some (working) code from Linux to Windows 8. I'm using DDK. typedef
I have working code of js, it shows different div for selected option. <html>
I have some working code with a crutch to add BOM marker to a

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.