I try to follow the release branching model described in http://svnbook.red-bean.com/en/1.7/svn.branchmerge.commonpatterns.html , but when I try to merge, I get a merge conflict,
svn-testing2> ls -l
total 12K
drwxrwxr-x 3 xxx yyy 4.0K Jan 13 17:28 branches/
drwxrwxr-x 3 xxx yyy 4.0K Jan 13 17:28 tags/
drwxrwxr-x 3 xxx yyy 4.0K Jan 13 17:28 trunk/
svn-testing2> echo "line1" > trunk/file1; svn add trunk/file1; svn commit -m "created file1 " trunk/file1
Adding trunk/file1
Transmitting file data .
Committed revision 2.
svn-testing2> svn copy trunk branches/release
A branches/release
svn-testing2> svn commit -m "created release branch" branches/release
Adding branches/release
Adding branches/release/file1
Committed revision 3.
svn-testing2> echo "line1-file2" > trunk/file2; svn add trunk/file2; svn commit -m "created file2" trunk/file2
A trunk/file2
Adding trunk/file2
Transmitting file data .
Committed revision 4.
svn-testing2> cd branches/release/
svn-testing2/branches/release> svn merge ^/trunk
--- Merging r2 through r4 into '.':
C file1
A file2
Summary of conflicts:
Tree conflicts: 1
bumjvr@mbs-p:~/svn-testing/svn-testing2/branches/release> svn st
M .
C file1
> local add, incoming add upon merge
A + file2
I can fix it with
svn-testing2> svn resolve --accept=working *
But it seems to me that I should do it.
If I then applied a “fix” (for example, I create a “release / file3”) to my release branch, how do I pass this back to the trunk? If I combine "release" into "trunk", it merges into OK, but when merging "trunk" with "release" I get another conflict local add, incoming add upon merge, for example. "File3"
"" , .
, redbook SVN (, , ) , - , !
, ? - - !