Skip to content

Rhaptos Software Development

Personal tools
You are here: Home » Developer Blog » jccooper blog » SVN 1.5 means svnmerge -> svn merge

SVN 1.5 means svnmerge -> svn merge SVN 1.5 means svnmerge -> svn merge

Document Actions
Submitted by jccooper. on 2008-09-10 17:23. Development
The new version of SVN is out, and it has (finally) built-in merge tracking. And it's better than svnmerge.
We're been using 'svnmerge' for a while now, to supplement the poor merge handling in SVN. And, in general, it's pretty helpful. Merging to trunk is a bit touchy and complicated (see our instructions on that) and sometimes it can be a bit fragile.

SVN 1.5 now has integrated merge tracking, and it seems like a good idea to move to that. Not just because it's more standard, but it's also much prettier. For example,

To merge from trunk to a branch (sync from trunk)::
$ cd BRANCH_WORKING_COPY
$ svn merge URL_TO_TRUNK
To merge a branch to trunk::
$ cd TRUNK_WORKING_COPY # or 'svn switch URL_TO_TRUNK'
$ svn merge --reintegrate URL_TO_BRANCH
The former is as easy as 'svnmerge merge', The latter, well, compare to::
$ cd ../PRODUCT
$ svn switch URL_TO_TRUNK
$ svnmerge init URL_TO_BRANCH
$ svn ci -F svnmerge-commit-message.txt
$ svnmerge merge --bidirectional
$ svn st
$ svn diff
$ svn ci -m"merged branch to trunk; "
$ svnmerge uninit -S BRANCHNAME
$ svn ci -F svnmerge-commit-message.txt
Also, it won't require an init step on branch creation, so we won't have to know we're using it until actually merging.

A lot nicer, I think. And being part of SVN, hopefully more stable.

To read more about it, see:
Release Notes
Blog Entry
SVN Book, Merging Chapter


I'm pretty much sold. The only issue using this, I think, is administrative: we need to move everyone to SVN 1.5.1, and also the SVN server. Both versions of the server will work with both versions of the client, but feature availability will be limited if one or the other is on 1.4.
Developer Blog
« November 2008 »
Su Mo Tu We Th Fr Sa
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
2008-11-10
13:39-13:39 Suggestion for live site slowness reports
Categories:
Content (55)
Copyright (0)
Deep Code (3)
Development (203)
Markup (22)
Metadata (1)
Printing (7)
Style (9)
Testing (2)
Usability (6)