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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:07:55+00:00 2026-05-15T20:07:55+00:00

A little background, because this might be kind of confusing: the project I’m working

  • 0

A little background, because this might be kind of confusing: the project I’m working on is one where most of the code is the same, but there are some files that change based on the platform we’re deploying to. For this, the root folder has all of the “core” files that don’t change, and then there is a directory for each platform with the files that change. So there’s a baz/foo.c and a bar/foo.c, because foo.c changes depending on whether it’s deployed to baz or bar. Makefiles and such make all this magic work.

The quesiton is, I’m working on a new platform (we’ll say qux) that is based on bar, so I’ve been working in a branch, and making modifications in the bar directory. Now I want to rename that directory to qux, but preserve the original bar in the trunk when it comes time to merge, because that platform still exists. So my ultimate goal is to, in the trunk after merge, have baz and bar as they were before my meddling, and a new folder qux with my changes (which are currently in the branch under the folder bar, and are based on the original bar).

Is there an easy way to do this? If I rename bar to qux in my branch, it seems like it’ll try to delete bar when I merge it back into trunk, which isn’t what I want to happen. Do I need to do something like create a new folder qux in my branch, copy files into it from bar, and then revert bar back to its original state? Or is there a better way to do this?

Edit: To be clear, there are changes already in the bar folder that need to be reverted if I copy the files into a new folder.

  • 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-15T20:07:56+00:00Added an answer on May 15, 2026 at 8:07 pm

    Since bar isn’t going away in the trunk, don’t rename it. Leave it as is, and create a new qux folder, then copy the contents of the bar folder into it. Copying won’t remove anything from bar. Modify in qux as appropriate for the new platform. Then when you merge the feature branch back to trunk, you’ll have your original, unchanged, bar and your new qux.

    If you create the copy with Subversion (as opposed to a plain filesystem copy), you’ll even have the prior history of the qux files, though you may not need that.

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

Sidebar

Related Questions

I have very little background in website programming so I apologise if this might
Little help please, because I am not really familiar with this kind of thing.
A little background: I'm working on a project converting a webapp in another scripting
First, a little background, because there is a lot of interaction going on: I'm
I was wondering if somebody has some insight on this issue. A little background
As background, I gave an answer to this post a little while ago: Return
For a little background information, I am trying to sync two calendars (one of
First, a little background (greatly simplified): I have two classes, one called Entity and
First a little background. I am building a mobile app for a client, this
I will give a little background. I'm working on a pay-per-click engine, and I

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.