Using SVN

Now and again I end up having to use SVN while at $DAYJOB.

Merges

I don’t know if it’s just me, but merges in SVN are a nightmare. I’m sure there are cases that would Just WorkTM with Git but fail spectacuarly in SVN.

Anyway, often I find that I will use a diff and merge what I need manually, but it would still be useful to record that a merge happened in SVN itself. Turns out you can

  1. In a terminal navigate to the folder containing the base branch you are merging into and run the following command:

    /path/to/repo/develop $ svn merge --record-only ../branch-name
    
  2. Commit as normal, the merge will be recorded in the repo’s history.