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

Re: Can I access files by property?

From: David Kramer <david_at_thekramers.net>
Date: 2005-01-05 20:22:27 CET

On Wed, 5 Jan 2005, Max Bowsher wrote:

> David Kramer wrote:
> > One of the things CVS can do with its vcs.cfg file is group a list of
>
> *PVCS*. CVS's equivalent is called modules, not vcs.cfg.

yeah, sorry for that one. Half the posts on the list contain 'cvs', so I
slipped. We are moving from PVCS to svn.

> Indeed, as you surmise, custom properties aren't really going to help here.
> However, svn:externals might.
> Have a look at the svnbook, and tell us if they can model what you want to
> do.

It looks like I could set up an empty directory called "scripts", then add
external mappings to the other URLs in the same repository that contain
the actual scripts, and getting the scripts directory will get all the
other directories. That's not quite what I was looking for, but it is
promising. If I'm reading it right, though, the working copy files would
not be associated with their ofiginal directories anymore, so I would not
be able to commit changes to those files.

What I am really trying to do is get a subset of files from within a
directory, or across several directories, not get a group of directories together.
Sorry if that was not clear from my earlier post.

It sounds like what I need to do is maintain a metafile in the directory
that contains a list of files of that class. I hate to tack on stuff like
that, but it seems the best available way.

For instance, I have a /foo directory with all sorts of files. I put a
file in there called FILELIST_scripts, which contains a list of files that
are scripts. Then I can:
for file in `cat FILELIST_$FILETYPE` ; do processmyfiles ; done
or even
for file in `svn cat $REPOS/FILELIST_$FILETYPE` ; do processmyfiles ; done

I just wanted to verify that there really isn't a way of doing what I want
with subversion alone before I implement something like this. Thanks for
verifying it.

 ----
DDDD David Kramer http://thekramers.net
DK KD
DKK D "I know, I know. It's a russian thing. When we're about to
DK KD do something stupid, we like to catalog the full extent of
DDDD our stupidity for future reference" -Ivanova, Babylon 5

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 5 20:27:09 2005

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