On 9/26/06, Poul Nielsen <poul@langhuse.dk> wrote:
> Wanted:
> - add properties to files - thereby grouping files
> - the properties can then be used to perform actions when publishing the
> repository, like generating PDF files from documents etc.
>
> Properties looks perfect for the job, setting them is easy. The problems
> start when you want to automate because it looks like access to
> properties is very simple/limited.
>
>
> Q: how do you list all properties found in all files ?
>
> Q: how do you get a file list of files holding a specific properties or
> property/property value ?
>
> It would be useful to be able to add "--recursive" to most of the
> "svnlook prop?? " commands or maybe even better allow wildcards in the
> REPO_PATH like '/trunk/*'
>
> Is the only way using
> svnlook tree --full-paths /
> and generate a filelist from the list returned ?
>
> Anybody with some useful scripts (bash/perl) ?
>
> How could a hook script be used here ?
A hook script to apply properties? Modifying a transaction in-flight
will result in the committer not having an up to date working copy
immediately after commit. The general guideline is to not modify
transactions in hook scripts.
Have a look at svn_apply_autoprops.py, it will traverse a working copy
and apply all properties that are definedin your [auto-props]
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 26 13:02:58 2006