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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:58:35+00:00 2026-06-17T11:58:35+00:00

When SVN was set up, instead of creating a branch from trunk, we simply

  • 0

When SVN was set up, instead of creating a branch from trunk, we simply created a new folder in the root structure:

/branches/dev/  
/trunk

and worked on that. Now, of course, it’s impossible to merge dev into trunk as SVN doesn’t see a hierarchical connection. I’m trying to find the best way to make it proper, so that the dev branch we have our code in is related to trunk and we can do normal merges in the future.

I found two approaches – one of them simply copy code from dev to trunk, commit trunk, and then do a proper branch checkout. My problem with this approach is that we’d lose all the revision history, as the real dev branch would start out fresh.

Other approach is to use –ignore-hierarchy. This seems like forcing stuff into trunk and I’m unsure of the downsides of this approach.

Basically what’s the best way to fix the screw-up from the beginning, when we physically created dev folder on our own, instead of branching trunk?

  • 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-17T11:58:36+00:00Added an answer on June 17, 2026 at 11:58 am

    Why can’t you merge that branch into trunk?

    There are different ways to maintain branches and the like inside subversion (and every other rcs). What you intuitively set up is the traditional way: you create folders and copy differences between folders revisions between branches/trunk/tags. That works, since to svn a node in the hierarchy is nothing but a folder. There is no special magic in svn.

    Subversion is nothing but a file system with an additional time axis.

    So all you have to do is merge the changes (revisions) you committed to the branch node into the trunk:

    svn merge -r <start>:<current> https://<server>/<repo>/<path>/branches/dev <trunk-checkout>
    

    (That is: if your branch initially contained some revision of the trunk. But I assume it did, since you did not say otherwise. If it is completely independent from the trunk then why is it called a branch? And: more important: why do you want to merge it into the trunk?)


    Update 2013-01-26:

    Discussion revealed that the situation involved an empty trunk, never populated and never used, so nothing to merge any changes from a branch into. Instead the whole development originated and was made in something called a ‘branch’ which in reality served as the sole ‘trunk’ for this project.

    So the solution appears like this:
    In this case simply move what is currently called branch to be the projects trunk and continue development under that new (and better fitting) name. Developments are done either inside new checkouts or by rebasing existing checkouts. Branches should from now on be used the way described below. So correct the missfitting names and adjust the current situation so that it matches the typical wording of projects:

    • trunk is where the ‘main’ line of development is done or consolidated
    • trunk is where develpment from within branches is re-merged into again
    • several branches might be created by forking the trunk at a given point in time
      • inside those branches complex development can be implemented alongside other changes to he trunk without interfering
      • when those more complex developments are done and the new features or architecture got stable (“is ready”), then the changes from a branch can be merged back into the trunk
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've set up svn /home/svn/repository/project and created trunk, branch and tags under /tmp/svn-structure-template .
Ok so we all know the standard SVN set-up of trunk\ branches\ tags\ And
How can developers set up their environment paths when working on different SVN branches
I'm trying to set up an auto-deploy from my springloops SVN through SFTP, but
Here's my batch script: @echo off cls set SOURCE=svn://vcrep/UXP/ercpac/trunk/ set SVN=C:\Program Files\TortoiseSVN\bin %SVN%\TortoiseProc.exe /command:update
Can I set hooks for pull/pushing from/to a git-svn managed repository? The situation is
I'm new to SVN and am trying to find a workflow / SVN structure
Setup is following: Drupal project, one svn repo with trunk/qa/production-ready branches, vhosts for every
I have an SVN repo set up on my server and am having post-commit
Is it possible in SVN to set write permission for a single file, while

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.