[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Auto-Props

From: Andy Levy <andy.levy_at_gmail.com>
Date: Tue, 8 Jul 2008 15:07:13 -0400

On Tue, Jul 8, 2008 at 14:57, Stefan Küng <tortoisesvn_at_gmail.com> wrote:
> Andy Levy wrote:
>>
>> On Tue, Jul 8, 2008 at 12:27, Stefan Küng <tortoisesvn_at_gmail.com> wrote:
>>>
>>> Jon Hardcastle wrote:
>>>>
>>>> --- On Tue, 8/7/08, Simon Large <simon.tortoisesvn_at_googlemail.com>
>>>> wrote:
>>>>
>>>>> From: Simon Large <simon.tortoisesvn_at_googlemail.com> Subject: Re:
>>>>> Auto-Props To: users_at_tortoisesvn.tigris.org Date: Tuesday, 8 July,
>>>>> 2008, 3:07 PM 2008/7/8 Rob Moore <robm_at_zuken.co.uk>:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I am trying to configure my SVN repository so that any
>>>>>
>>>>> .xls/.doc files are
>>>>>>
>>>>>> automatically added with a 'lock' property. I
>>>>>
>>>>> looked in the documentation, and unless my glasses
>>>>>>
>>>>>> need changing I cannot see anything on how to do this,
>>>>>
>>>>> please point me in the correct
>>>>>>
>>>>>> direction
>>>>>
>>>>> I agree it's not very obvious. Your prescription is safe ;-)
>>>>>
>>>>> TSVN->Settings, edit subversion config file.
>>>>>
>>>>>
>>>>>
>>>>> http://svnbook.red-bean.com/en/1.4/svn.advanced.props.html#svn.advanced.props.auto
>>>>>
>>>>>
>>>>> Note that this is a client-side feature. To enforce this on the server,
>>>>> all you can do is add a pre-commit hook which rejects
>>>>> addition of these files if the svn:needs-lock property is not set.
>>>>>
>>>>> Also, be aware that autoprops only work for new adds. Anything
>>>>> already in the repository will need that property added manually.
>>>>>
>>>>> Simon
>>>>>
>>>> If you did want to add it to everyone in the repos.. then
>>>> 'svn-apply-autoprops.py' is your friend.. atleast that is what i
>>>> think it is called. It will require the same file as the client side
>>>> solution (well mainly).
>>>>
>>>> Check out the repos, run svn-apply-autoprops.py and commit.
>>>>
>>>> From experience... if your repos is very massive.. break this process
>>>> down abit...
>>>
>>> Also, don't forget the tsvn:autoprops property:
>>>
>>> http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-propertypage.html
>>>
>>> If you set that on your folders, TSVN will make sure that the auto
>>> properties are added automatically too.
>>
>> Is that new with 1.5, or will 1.4.x versions of TSVN honor that as well?
>
> That is new with 1.5, 1.4.x versions of TSVN won't know about that.

Good to know; as soon as I get back to work on Monday I'll toss it in
anyway and people will be getting upgraded anyway. I'm assuming it
won't break anything if 1.4 clients see it, based upon what I've seen
w/ other "custom" properties.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-07-08 21:07:26 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.