Jump to content

svn:needs-lock properties


Recommended Posts

How do you set the svn:needs-lock properties for use in a Lock/Unlock model in TortoiseSVN?

You can set it repository wide (I think that only works for new items?), or set it on a file-by-file basis (right click on the file, TortoiseSVN, properties, New..., property name = svn:needs-lock). Our IT dept has a script that runs after TortoiseSVN install that makes our clients add the needs-lock property to all items added to the repo - not sure if I can share that, but let me know if that's what you're asking for.

Link to comment

I have tried to search for this but have found many broken links.:frusty:

How do you set the svn:needs-lock properties for use in a Lock/Unlock model in TortoiseSVN?

Thanks

Dan

Add these properties to C:\Documents and Settings\<username>\Application Data\Subversion\config

[miscellany]

enable-auto-props = yes

[auto-props]

*.vi = svn:needs-lock=yes

*.ctl = svn:needs-lock=yes

*.vit = svn:needs-lock=yes

*.ctt = svn:needs-lock=yes

*.rtm = svn:needs-lock=yes

*.llb = svn:needs-lock=yes

*.lvproj = svn:needs-lock=yes

*.lvlib = svn:needs-lock=yes

*.lvclass = svn:needs-lock=yes

Now, all of these file types will get created with the lock enabled - I think - it's been a while since I looked closely at this

Mark

Link to comment

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.