Hi! Thanks for visiting my blog. If you've received any value from my content would you mind supporting my new startup by downloading our browser add-on? It's called PriceBlink and makes online shopping a breeze. You can watch it in action here and download it for Chrome, Firefox, IE, or Safari by going to PriceBlink.com. Thank you and I hope you enjoy!

Merging a Single Subversion Commit from Trunk to Branch

Jan 26

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

2 comments

  1. James Broadhead /

    I’d put the command together already myself, but was googling to confirm before hitting return. Cheers!

  2. A different way but easier
    svn merge -c 11259 https://myrepo.com/trunk

Leave a Reply