The key is to have A branch with the same content as trunk, but this is more sane than’trunk’, because at least automated testing has passed.
I have a script that tries to do this manually, but this is one that uses a custom The attribute hack, doesn’t always work properly-as I just discovered. How can I best make Subversion do this?
svn update
svn merge http://example.com/svn/myproject/trunk- r 0:
svn commit -m "merged trunk revisions up tointo tests-passed"
Whenever you use the merge command, SVN will be in the svn: mergeinfo attribute Record the merge. Therefore, the above command should automatically determine which revisions are in range 0:
As you said in the comments, No conflicts are expected. But sometimes I see unexpected conflicts occur anyway when merging a series of SVN revisions that include renames. To eliminate these conflicts, you can use the –accept theirs-full option and the merge command to always accept the trunk Status.
After each submission to the’trunk’, we will automatically conduct a series of tests on the trunk. When these tests pass, I want to automatically merge the In the “tests-passed” branch. When the test fails, no merge will occur, but once the problem is fixed on the next or later submission of the “trunk”, all changes should be merged.
< p>The key is to have a branch with the same content as trunk, but this is more sensible than’trunk’, because at least automated testing has passed.
I have a script that tries to do this manually, but This is a hack that uses custom attributes and doesn’t always work properly-as I just discovered. How can I best make Subversion do this?
As long as you determine the new trunk version
svn update
svn merge http://example.com/svn/myproject/trunk -r 0:
svn commit -m "merged trunk revisions up tointo tests-passed"
Whenever you use the merge command, SVN will record the merge in the svn: mergeinfo attribute. Therefore, the above command should automatically determine the scope Which revisions in 0:
As you said in the comments, conflicts are not expected to occur. But sometimes I see When merging a series of SVN revisions that include renames, unexpected conflicts will occur anyway. To eliminate these conflicts, you can use the –accept theirs-full option and the merge command to always accept the trunk status.