I start at SVN. I have an SVN directory structure like this:
|-trunk |-file1.php |-file2.php |-branches |-branch_1 |-file1.php |-file2.php |-branch_2 |-file1.php |-file2.php
In the trunk, I have the main version of my application. I have two branches for different clients that have modifications in only some files. When I find the main mistake, I correct it in the trunk. For example, I changed the file1.php directory to trunk . I want to apply changes to files named file1.php in all branches.
I'm a little confused. In Version Control with Subversion, I found the following explanation.
The Subversion repository has a special design. When you copy a directory, you donβt need to worry about the storage growing huge - Subversion does not actually duplicate data. Instead, it creates a new directory that points to an existing tree.
So, although I am making changes to the trunk\file1.php , it will automatically be linked to other file1.php files, since I have not made any changes to these files in the branches directory.
How can I apply changes from the trunk directory to all branches? I tried to use svn merge as follows:
svn merge -r 31:32 http://mysvnserver.com/project/branches/branch_1
but I didnβt make any changes ( svn diff -r 31:32 returns all the changes I made.)
merge svn
Lukasz Lysik
source share