Fix common svn commit errors - locked, out of date, forbidden

We all know SVN and we use SVN in all development streams. SVN is really helpful to track the changes, modify the versions of files and publish to the live server. Every developer can analyse and move the file changes to the server using SVN commit procedure. SVN will take care of merging the final file contents and chances of file conflicts are negligible. This is the biggest advantage of SVN.

 You might encounter few errors while working with SVN. Here's the ways to fix the errors.

1. Working copy is locked

You could fix this using the cleanup method.

Go to the root folder
Do a SVN cleanup
Update the files from the root folder itself.
Then commit your desired folder.

If this method doesn’t help, Try the following

Copy or rename the folder which causes the issue.
Do an SVN update from the root folder. 
The older version will be updated.
Compare the reverted code with the new code using comparing software like WinMerge.
Commit the files.

2. File or Directory is out of date 

Conflicts of versions between working copy directory and SVN directory causes the issue.

Just do a SVN update on the parent folder.

By doing this, working copy directory become the same version as the SVN directory. Now you can do a fresh commit on this folder.

3. Access to folder forbidden

You must know the user access permission set to the folder. Verify the following and resolve this issue.

Check user account has read and write permission on the file or folder.
Check the letter casing of the SVN url because SVN urls are case sensitive. SVN may give acess to update the contents but will not allow user to commit if wrong url is given.


0 comments:

Post a Comment