Merging a Single Subversion Commit from Trunk to Branch



I’m posting way too much about SVN these days, but these are mainly for my personal recollection. Hopefully you’ll find them useful too. Here’s the scenario: you’re working on a branch and you want to merge a single commit from trunk into the branch. The first thing you need to do is find the revision number that you want to merge. Let’s say it’s 11259. Your SVN merge command will look like this:

svn merge -r 11258:11259 –dry-run https://myrepo.com/trunk

Notice the “–dry-run” parameter. This will display a list of files impacted, but won’t actually make the change. When you’re ready for primetime just remove the –dry-run param:

svn merge -r 11258:11259 https://myrepo.com/trunk



Leave a Reply