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

Re: bugtraq:url and other repository settings

From: Simon Large <simon_at_skirridsystems.co.uk>
Date: 2007-01-09 22:59:44 CET

Mark Clements wrote:
> [SNIP]
>
> Ah - I see. So in practice it only needs to be set on folders that are
> likely to be WC roots. Unfortunately that includes all sub-folders within
> branches, and these are created quite often. Is there no way to
> automatically get the property onto these folders?

You can set the property recursively on existing folder structures to
propagate it to all subfolders (files are excluded automatically :-)

Unfortunately there is no automatic way to add properties when a folder
is added. Maybe something to pester the subversion folks about. It's not
obvious how it would work, though. Typically, directory properties such
as the ones you need may be project-dependant, so they should be
inherited from the parent rather than specified by file extension, which
makes it more of a server-side requirement. I think inherited properties
is on their TODO list, but I don't know how far off it is.

I suppose it might be possible for TSVN to grow a tsvn:autodirprops
property. If a folder is added to a WC and the parent has this value,
use it to set a property on that folder. But there are 2 holes in this
approach. It would fail if done through the repo-browser, as parent
props are not available (how many server trips to you make to search up
the tree?), and it would also fail if done by a different client, eg.
CLI. So there would be a false sense of security and lots of 'I set
auto-props and they don't always work' mails on the mailing list.

You could possibly add a pre-commit hook to check folders for the
presence of a bugtraq property.

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 Tue Jan 9 22:59:27 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.