Faint insights into (mostly) the worlds of automation and productivity

Svn Merging -- Additional Comments

| Comments

This is a small expansion on an earlier post about svn merging.

The svn Red Book gives the typical scenarios for merging including supporting work in development branches.

Create the branch:

svn cp

Check it out

svn co

Do work and keep the local copy updated based on updates to branch, trunk

svn up
svn merge [--dry-run] ^/trunk

Commit changes (including those merged from trunk

svn ci

When done, merge back to trunk, delete branch, remake branch

svn merge [--dry-run] --reintegrate ^/branches/development
svn ci
svn delete ^/branches/development
svn cp

In chapter 4 of the RedBook is a section called “Reintegrating” where the authors discuss why one should delete the development branch (and if necessary recreate it).