Tortoise SVN - Merge Trunk into Branch - Tree Conflict

brodie659

We are on SVN 1.8 and I'm using Tortoise SVN 1.8 as well.

The main code resides on /project/trunk. I will be doing a large change so I created a branch in /project/branches/x that was a copy of /project/trunk.

As part of the change, I need to rearrange the directory structure to handle multiple clients. Currently the the trunk looks like:

/project/trunk/process/xyz/file1.xml
/project/trunk/process/xyz/file2.xml

I want to change the structure to be more like:

/project/trunk/process/xyz/client1/file1.xml
/project/trunk/process/xyz/client1/file2.xml

I tried right-dragging into the new folder and did a SVN Move Here with the context menu. As I'm working on in the branch, I need to make a change to file1.xml in the trunk for a production issue. I want that change in my branch, but when I tried to do a merge in Tortoise SVN, it comes up with a conflict because the local file is missing.

The options simply give me options to resolve, postpone or abort. What is the best way to get the change from /trunk/process/xyz/file1.xml into /trunk/process/xyz/client1/file1.xml?

I'm kind of a novice in SVN so please be kind :)

Lazy Badger

Well, you are victim of "Refactoring Hell" in SVN - it's still a Big Problem

You have at least two choices

  • Merge (in order to eliminate tree-conflict) not trees (the whole /trunk into /branches/x), but individual files, file1.xml in you case.
    • In WC of branch, select "Merge" for individual file, not parent folder, and trunk's file1.xml as merge source.
    • Repeat these merges for all (moved) files with tree-conflict
  • Migrate to Mercurial at least for refactoring
    • (Install Mercurial /TortoiseHG/)
    • Enable (bundled with THG 3.0) hgsubversion extension
    • Clone SVN-repo into Mercurial repo
    • Refactor, merge, commit to local HG
    • (because mergesets can't be pushed back to Subversion) archive tip of Mercurial repo into unversioned files, which must replace WC of you Subversion repository and commit this state of changes (you'll get broken history at this revision in Subversion)
    • Return to work with Subversion repository and refactored code

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

svn to merge trunk into branch

From Dev

svn to merge trunk into branch

From Dev

How to merge SVN branch to trunk?

From Dev

SVN Branch To Trunk Merge Issue

From Dev

Switch from branch to trunk as working copy in SVN (tortoise)

From Dev

SVN Merge branch to trunk with ignored versioned files

From Dev

SVN resolve tree conflict in merge

From Dev

Reintegrating from branch to trunk, then merge back into branch in SVN .. what happens?

From Dev

Svn can't merge a directory move operation from trunk to branch

From Dev

SVN automatic merge from trunk to branch by specifying JIRA ticket id

From Dev

svn merge from trunk

From Dev

Tortoise SVN: Creating a Sparse Branch

From Dev

GIT Source Tree Merge Develop Branch into Stage Branch Conflict

From Dev

SVN Switch from branch to trunk

From Dev

SVN - undo an integrate of trunk to branch

From Dev

Tortoise Git Merge Conflict Colors

From Dev

Tortoise SVN merge two branches

From Dev

tortoise merge confusion on updating the branch

From Dev

How to merge the changes in a branch to the trunk

From Dev

How do merge specific svn revisions from branch to trunk in Android Studio 2.0

From Dev

Tortoise SVN won't commit, conflict

From Dev

svn branch/trunk using the some of the same files

From Dev

How skip SVN commit of branch from trunk

From Dev

Tortoise SVN Merge "@### must be ancestrally related to @###" Error

From Dev

GIT Branch / Merge Strategy (No Junk In The Trunk)

From Dev

Folder Restructure and Merge Conflict in SVN

From Dev

git: Merge newer branch into older branch without picking trunk chnages

From Dev

On single SVN branch to GIT migration - Not able to get all history of trunk

From Dev

How can one determine if an svn working copy is from branch or trunk?

Related Related

  1. 1

    svn to merge trunk into branch

  2. 2

    svn to merge trunk into branch

  3. 3

    How to merge SVN branch to trunk?

  4. 4

    SVN Branch To Trunk Merge Issue

  5. 5

    Switch from branch to trunk as working copy in SVN (tortoise)

  6. 6

    SVN Merge branch to trunk with ignored versioned files

  7. 7

    SVN resolve tree conflict in merge

  8. 8

    Reintegrating from branch to trunk, then merge back into branch in SVN .. what happens?

  9. 9

    Svn can't merge a directory move operation from trunk to branch

  10. 10

    SVN automatic merge from trunk to branch by specifying JIRA ticket id

  11. 11

    svn merge from trunk

  12. 12

    Tortoise SVN: Creating a Sparse Branch

  13. 13

    GIT Source Tree Merge Develop Branch into Stage Branch Conflict

  14. 14

    SVN Switch from branch to trunk

  15. 15

    SVN - undo an integrate of trunk to branch

  16. 16

    Tortoise Git Merge Conflict Colors

  17. 17

    Tortoise SVN merge two branches

  18. 18

    tortoise merge confusion on updating the branch

  19. 19

    How to merge the changes in a branch to the trunk

  20. 20

    How do merge specific svn revisions from branch to trunk in Android Studio 2.0

  21. 21

    Tortoise SVN won't commit, conflict

  22. 22

    svn branch/trunk using the some of the same files

  23. 23

    How skip SVN commit of branch from trunk

  24. 24

    Tortoise SVN Merge "@### must be ancestrally related to @###" Error

  25. 25

    GIT Branch / Merge Strategy (No Junk In The Trunk)

  26. 26

    Folder Restructure and Merge Conflict in SVN

  27. 27

    git: Merge newer branch into older branch without picking trunk chnages

  28. 28

    On single SVN branch to GIT migration - Not able to get all history of trunk

  29. 29

    How can one determine if an svn working copy is from branch or trunk?

HotTag

Archive