Subversion tip: Update works, but commit fails

You use devZing Subversion hosting for your project. The time comes to sync your file(s) and a problem arises when you do so. I mean, the update worked. But it fails to actually commit. The error message “Authorization failed” appears. What is going on? How can there be an authorization failure?

Well, the problem is simple and the solution is simple, too.

Here’s the problem: Subversion has a quirk. It lies in the commit process.

When you create a working copy, you can accidentally put in a technically incorrect URL and it still works. The checkout allows the case of the characters to not match the “official” URL. Because the update command is case in-sensitive, whereas the commit command is case sensitive, Subversion allows the error. For example, your original (and “official”) URL may be “svn://“. But when you enter the URL in the checkout command, the command which creates the working copy, you accidentally enter everything lowercase. You put in “svn://“. That’s easy enough to do.

But the commit doesn’t recognize this URL and rejects it with an “Authorization failed” message. It only accepts the exact original.

So check your original repository URL.



Make sure everything is exactly as it shows in the URL column.

The solution is simple indeed. Just check the URL of your working copy.

Subversion Tip: Fix Missing Date and Author in Svn Log

If you are trying to use the svn log command and the output is missing the author and date fields like the following example:

c:working> svn log
r8 | (no author) | (no date) | 1 line
r7 | (no author) | (no date) | 1 line
r6 | (no author) | (no date) | 1 line
r5 | (no author) | (no date) | 1 line
r4 | (no author) | (no date) | 1 line
r3 | (no author) | (no date) | 1 line
r2 | (no author) | (no date) | 1 line
r1 | (no author) | (no date) | 1 line

More than likely your Anonomous Access is set to Read.

Change this to None to prevent this problem.

If you are using a client like TortoiseSVN you may need to clear any cached logs.

In TortoiseSVN go to the settings screen and look for the Cached Repositories node. Then select and delete the repository you just fixed.

Be sure and check out our subversion hosting service.

Free Subversion Book

For a limited time receive a copy of Mike Mason’s new ebook Pragmatic Guide to Subversion with your paid Bugzilla Hosting, MantisBT Hosting or Subversion Hosting subscription!

The Pragmatic Guide to Subversion presents 48 essential tasks for your Subversion success. Stripping away the exhaustive details of reference books, this guide gives you a shortcut to the Subversion master’s recommended set of best practices. With this book, you can get to the good parts quickly, and be more productive and effective.

Subversion sets the standard in version control systems. Championed by open-source developers, Subversion is behind some of today’s biggest and most important software, including Apache, FreeBSD, Ruby, and MediaWiki. But more than just a tool for open-source collaboration, Subversion has made a significant impact in the corporate IT world. Most developers will now encounter Subversion source control during their career.

As a developer, you probably have knowledge of more than one source control tool and are expected to fluidly switch between tools depending on where you are working. This book was written to bridge the gap between knowing something about version control in general and knowing about Subversion specifically.

In Pragmatic Guide to Subversion, author Mike Mason drives developers to the features and practices that have made Subversion so successful. Each of the 48 tasks selected for the book is presented as a quick two-pager, with a succinct description on the left side and a quick reference on the right. The book is designed for experienced developers who know how to learn and want to get straight to the tricks and traps they’d otherwise learn by trial and error.

Subversion started life as a command-line tool but graphical clients are now extremely popular and can offer a lot of extra power. For every task in Pragmatic Guide to Subversion, you get to see how to carry out the task via the regular command-line client as well as the TortoiseSVN graphical client for Windows, and the Cornerstone graphical client for Mac.

Whether or not you’ve used other version control tools, you’ll learn Subversion’s popular way of working-how to access your source code, make changes, and share them with your team. Each of the development tasks selected for the book gives simple steps toward completion, paired with a clear explanation.

You won’t find a more practical approach to learning Subversion than Pragmatic Guide to Subversion.

Subversion Hosting Now Available is proud to announce the release of our Subversion Hosting plan. Like all our other plans it features 1 Gb disk space, unlimited repositories, unlimited users in each repository, a simple interface for creating repositories and managing users, and daily off-site backups.

The Subversion only price is a low $2.50/month. However, you can bundle Subversion with Bugzilla Hosting or MantisBT Hosting for only $10/month.

Our 14 day free trial will let you get a feel for our service and let you get everything setup at no cost – no credit card required! Go ahead, give it a try.