| 27 | | * To create a new branch from the trunk of a specific revision r to branches: `svn copy svn://vsl.cis.udel.edu/civl/trunk@r svn://vsl.cis.udel.edu/civl/branches/branch_name`. |
| 28 | | * Once a new branch created, you can check out your new branch with the command: `svn co svn://vsl.cis.udel.edu/civl/branches/branch_name`. |
| 29 | | * Within your own branch, you can do any changes you want for your new feature and you can commit your changes to the svn server so that your won't lose your work. |
| 30 | | * To keep being updated with the latest trunk, go to your local branch directory, type: `svn merge svn://vsl.cis.udel.edu/civl/trunk .`. |
| 31 | | * Frequent update can help you reducing the work of resolving conflicts when you decide to merge your branch back to trunk finally. |
| 32 | | * To merge your branch back to the trunk, go to your local branch directory, type: `svn merge . svn://vsl.cis.udel.edu/civl/trunk`. |
| 33 | | * When you decide to merge your branch back to trunk, be sure you have resolved all conflicts against the trunk and all regression tests passed. Then one of the lead developer of CIVL will help you committing into the trunk after reviewing your work. |
| | 25 | * To create a new branch named `branch_name` from the current trunk, type |
| | 26 | {{{ |
| | 27 | svn copy svn://vsl.cis.udel.edu/civl/trunk svn://vsl.cis.udel.edu/civl/branches/branch_name |
| | 28 | }}} |
| | 29 | * Once a new branch has been created, you can check out your new branch with the command |
| | 30 | {{{ |
| | 31 | svn co svn://vsl.cis.udel.edu/civl/branches/branch_name |
| | 32 | }}} |
| | 33 | You can also create a new Eclipse project from that branch, in the usual way. |
| | 34 | * Within your own branch, you can change anything you want to implement your changes or additions, and you can commit your changes to the svn server so that you won't lose your work. |
| | 35 | * To merge changes made to the trunk into your branch, change into your local branch directory and type |
| | 36 | {{{ |
| | 37 | svn merge svn://vsl.cis.udel.edu/civl/trunk . |
| | 38 | }}} |
| | 39 | Do this regularly (or whenever changes are committed to the trunk) in order to reduce the work of resolving conflicts when you decide to merge your branch back to the trunk. |
| | 40 | * Lead developers only: to merge a branch back to the trunk, change into the local branch directory and type |
| | 41 | {{{ |
| | 42 | svn merge . svn://vsl.cis.udel.edu/civl/trunk |
| | 43 | }}} |
| | 44 | Resolve conflicts as needed and make sure all tests pass. |