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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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