This morning, I tried to commit a revision to Subversion and found that all of a sudden I did not have permission to do so.
Can't move '/svn/db/txn-protorevs/21000-ga9.rev' to '/svn/db/revs/21/21001': Permission Denied
Looking at the revs directory, I noticed that somebody had committed the 21000th revision, and the group write permission for the new directory is missing for some reason.
drwxrwsr-x 2 svn svn 24K 2008-10-27 10:04 19 drwxrwsr-x 2 svn svn 24K 2008-12-18 07:13 20 drwxr-sr-x 2 jeff svn 4.0K 2008-12-18 11:18 21
Setting the group write permission on that directory allows me to commit, so I'm good for another 1000 revisions. But why does this happen, and what can I change to make sure it doesn't happen again?
Best Answer
If you have more than one developer accessing the repository through the
file://
protocol, you may want to look into setting up a Subversion server (usingsvnserve
or Apache). With that solution, the server itself is responsible for all access and permissions on the repository files, and you won't run into this problem.From the SVN Book: