Dunderklumpen
Dunderklumpen

Reputation: 1874

svn:needs-lock Files need lock, but I cannot find the property

I'm a little confused with something that is happening in our SVN. In my local checkout, some of the files seem to be set as "needs-lock" but I cannot find the corresponding property.

Can anyone suggest where the property/information is being stored for these files?

Upvotes: 3

Views: 3788

Answers (3)

Aketza Ayo
Aketza Ayo

Reputation: 96

If you are using IntelliJ IDEA it might be worth checking that you haven't locked the file in the source editor by clicking on the lock icon.

The lock icon is a toggle button located at the bottom right of the IDE. If you hover over it shows the "Click to toggle the read-only attribute" text tooltip.

Upvotes: 1

partydog
partydog

Reputation: 312

Took me a second to figure this out.

How to toggle on/off the 'Needs-Lock'property for SVN files.

(Using Windows Explorer)

Go to file(s) you want to put lock on/take lock off

Right click > Tortoise SVN > Properties

Click New button > select Needs-Lock

Select Locking required (read-only update) radio button or No locking required radio button > OK

Upvotes: 0

Dunderklumpen
Dunderklumpen

Reputation: 1874

Posting this for the information of others:

After a lot of mucking around, it looks like setting a file to read-only (in windows) is enough for Tortise SVN and Eclipse to show the grey needs-lock icon (in Package Explorer or Navigator for Eclipse, Windows Explorer for Tortise SVN).

So it seems that the grey icon means that the file is under source control and the file is read-only, regardless of the 'needs-lock' property.

Upvotes: 0

Related Questions