Daron V
Daron V

Reputation: 317

SVN readonly non modified files (checkout)

Is it possible to make the non-modified files in a local SVN repository read only until someone changes them and the, once commited, make them back readonly?

I don't want to implement the lock-modify-commit pattern. I just want to have local copies readonly and have some sort of "checkout" command that will make the file modifiable. I am looking to make the developer more aware of the files he/she is changing.

Thanks

Upvotes: 2

Views: 265

Answers (2)

jussij
jussij

Reputation: 10580

The Microsoft MS-SCCI interface defines a checkout and lock, checkin and unlock protocol.

So if you're developer tools support the MS-SCCI interface then you could use any SVN plug-in that supports this interface.

As an example the Agent SVN supports MS-SCCI and it has this feature and works with MS-SCCI compatible IDEs like Visual Studio, SSMS or PowerBuilder.

Note: I'm the author of Agent SVN.

Upvotes: 2

Stefan
Stefan

Reputation: 43575

Set the svn:needs-lock property on all your files.

Upvotes: 1

Related Questions