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

Re: inherited props and svnlook

From: Johan Corveleyn <jcorvel_at_gmail.com>
Date: Thu, 15 Nov 2012 22:24:18 +0100

On Thu, Nov 15, 2012 at 9:56 PM, Paul Burba <ptburba_at_gmail.com> wrote:
> On Thu, Nov 15, 2012 at 3:45 PM, Johan Corveleyn <jcorvel_at_gmail.com> wrote:
>> Hi,
>>
>> Does svnlook support inherited-props?
>
> No
>
>> At first sight, I think not
>> (can't see the --show-inherited-props option in the output of 'svnlook
>> help propget').
>>
>> Are there any plans to implement this before 1.8?
>
> No plans as of right now, but I can certainly tackle that if necessary.

I'm not sure, but maybe it would be useful for example in generic
pre-commit hook scripts for enforcing auto-props:

for x in (svnlook changed -t $TXN):
  if ($x is addition or propmod):
    autoprops = svnlook pg -t $TXN --show-inherited-props svn:auto-props $x
    enforce_props(autoprops, $x)

(possibly combined with some authz that makes the
project-base-directory, containing svn:auto-props, only writable by
project administrators or something like that)

But then again, this would probably be a very inefficient way to check
this. If the commit adds 100 files, it doesn't make much sense to
propget 100 times the same autoprops from some project-root-dir.

But I guess in some cases it can still be quite useful, and it doesn't
hurt to have the option available, does it :-) ?

-- 
Johan
Received on 2012-11-15 22:25:11 CET

This is an archived mail posted to the Subversion Dev mailing list.

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