Let me start by explaining our set-up:
I am working with some contractors. They are using Visual Source Safe for source control and our company is using Subversion. Every few days they preform a checkin to our repository by doing the following steps:
Its a horrible process and we plan to address it in the next iteration but it works. Except that sometimes it doesn't. Sometimes after they do the commit some of the files have a gray checkmark overlay.
I am not sure what this means. Googling around implies it might have something to do with locking but nobody is explicitly locking anything! The files seem to get committed, but they are missing when I do a check out. I am sure that I am missing something.
Can anyone explain whats gong on and how to fix it?
from here:
If you have set the svn:needs-lock property on a file, Subversion makes that file ReadOnly until you get a lock on that file. Read-only files have this overlay to indicate that you have to get a lock first before you can edit that file.
We don't use the needs-lock stuff here, so I can't really explain more. It's a start though.
Edit: Since they are using VSS, the files will have the read-only attribute set when they are not checked out. TortoiseSVN may be interpreting this as having the needs-lock set.
These are file which have the svn:needs-lock property set. To edit these files you first have to lock them.
Here's the explanation from TortoiseSVN's help file:
If you have set the svn:needs-lock property on a file, Subversion makes that file read-only until you get a lock on that file. Such files have this overlay to indicate that you have to get a lock first before you can edit that file.
This is usually used with binary files (images, word documents, etc.) that can not easily be merged when edited by several persons. The lock prevents that the file can be edited by more than one person at a time.
If you want to remove the svn:needs-lock property, then right-click the file, select TortoiseSVN -> Properties and delete the property.
Update: what can cause a file to have the svn:needs-lock property:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With