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

Re: Properties for new folders

From: Simon Large <simon_at_skirridsystems.co.uk>
Date: 2007-02-22 22:51:20 CET

Sunny wrote:
> On 2/22/07, Simon Large <simon@skirridsystems.co.uk> wrote:
>> Sunny wrote:
>> > Hi,
>> > I read this question and Stefan's answer:
>> >
>> >
>> <http://tortoisesvn.tigris.org/servlets/ReadMsg?listName=dev&msgNo=23433>
>> >
>> > But unfortunately it does not explain how should I set bugtraq
>> > properties so if a new folders is added, these properties are
>> > propagated as well. Any pointers will be highly appreciated.
>>
>> Sorry, can't be done. auto-props only work for files, and Subversion
>> does not (yet) have any mechanism for inherited properties.
>>
>> The only thing you can do is set up a pre-commit hook to reject folder
>> additions if they don't have that property set.
>>
>> On the plus side, TSVN searches upwards through the WC structure looking
>> for the property. You only have problems with the property not existing
>> on sub-folders if you checkout one of those folders on its own.
>>
>> Simon
>>
>
> Thanks Simon,
> If I understand this right, when I checkout the whole three (not only
> me, but any of my colleagues) if we add a new folder, and some files
> in it, upon commit TSVN will still have the BugID box to set the case
> number, and will update the repo properly. That should work for us.
> Thanks again.

Correct. In fact not even the whole tree. As long as one of the folders
above has that property, TSVN will find it.

Simon

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Thu Feb 22 22:51:17 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.