In my local working copy of Subversion, I have a copy of the trunk and code branch. I made changes to the trunk and want to copy these changes to my (currently clean) local copy of the branch.
I know that I can check the code on trunk and then use svn mergeit to get changes in the branch, but is there a way to do this without first checking the changes?
Unfortunately, diff / patch will not work, as there are changes in the code surrounding my changes between the chest and the branch. I know I svn mergecan handle them, but as I said, it’s better not to check your changes first.
Edited to add an example:
There is a file in the trunk containing the following:
File in trunk: File in branch:
apple apple
orange banana
pear pear
In trunk, I add dragon fruitbelow pearto the trunk line file on my working copy. If I verified that modifying and using a merge to copy it to branches, Subversion would correctly add dragon fruitbelow pearto the branch version of the file.
svn diff something similar to the following is created on my copy of the trunk file:
@@ -1,3 +1,4 @@
apple
orange
pear
+dragon fruit
It is clear that using the patch will not work, as it notices the difference between immutable texts.
What I want, without having to check anything, is to have the dragon fruitspecified after pearin both files, but not change the difference orange/ bananain any file.