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

Can I access files by property?

From: David Kramer <david_at_thekramers.net>
Date: 2005-01-05 17:35:19 CET

One of the things CVS can do with its vcs.cfg file is group a list of
files together as an alias, such that those files can be extracted with
get '$(aliasformyfilelist)'
I'm trying to figure out how to do something similar in svn, and the
closest straw I can grasp onto is properties.

What I would like to do is to set a property on some directories in my
repository, and perform actions on directories that have that property, or
have a certain value for that property. The idea is to capture the
metadata from PVCS's vcs.cfg file into Subversion.

THis is the closest I've been able to come up with as a mechanism to list
directories that hold scripts to process specially:

svn propget isscriptdir `find . -type d | grep -v .svn` \
                         | awk '{print $1}'

This seems a little inefficient at best. There doesn't seem to be a way
to find files by property directly. Am I missing something, or asking too

I tried "svn -R propget isscriptdir *", but that command produces an error
when it see the first unversioned file, producing the error message "svn:
'acrobat5' is not under version control". Since I am compiling programs
in my working copy, this is unavoidable. Is there a reason it can't just
ignore unversioned files and directories and continue on?

P.S. This list has been incredibly helpful. Thanks one and all for your
efforts, both on this list, and on subversion itself.

DDDD David Kramer david_at_thekramers.net http://thekramers.net
DKK D "Questions are a burden to others,
DK KD Answers a prison for oneself."
DDDD -The Prisoner

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 5 17:37:46 2005

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