Reintegrate branch auto-creates commit summary message

Just a small SVN tip to close the year. Did you know, that if you have a feature branch and you reintegrate it into the trunk, TortoiseSVN makes a nice summary of the revision comments of the branch and puts it under your Recent comments button in the Commit dialog?

Here’s the procedure:

  • Go to the trunk, reintegrate the desired branch.
  • Open the project / solution in the trunk in your IDE, and rebuild and test if everything works as expected.
  • Commit the trunk, click Recent messages.
  • Even though you did not type anything, there’s a ready-to-use message, starting with “Merged revision(s) aaa-bbb …” etc. Double click it.
Ready to use commit message. I did not type that. (Yeah, well, I did, but only the first time when committing to the branch.)

Ready to use commit message. I did not type that. (Yeah, well, I did, but only the first time when committing to the branch.)

  • Click OK.

Happy holidays everyone!

SVN Commit failed, access forbidden

Yesterday I had to commit a project to a fresh and new repository on a Subversion server (VisualSVN Server). So I checked out an (empty) working copy, inserted the files, and committed. The files were added, but immediately after that, TortoiseSVN complained: commit failed (details follow): access to ‘/svn/(RepoName)/!svn/act/(someguid)’ forbidden.’ Errr… what?

Commit failed, access forbidden -- but I do have write access?

So I verified with the server admin that I had read and write permission, which was the case. Googling for answers turned up a possible suspect: casing of the repository name. Turned out my casing was different than what the admin had created. RepoName should have been Reponame (example, of course). With the wrong casing in the svn url, I was able to do checkouts, updates, browse the repository and everything else… but not commit.

So if you ever encounter an error something like this, check your casing. Even on Windows filesystems.

BTW: check out the improvements in the updated TortoiseSVN 1.7, impressive.

Edit (26-01-2012): As Steve pointed out in the comments, the unexpected case sensitivity is not limited to the repository name. Also check the domain part of your user’s logins.