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

Re: Svndumpfilter

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2004-10-07 16:18:32 CEST

"C. Michael Pilato" <cmpilato@collab.net> writes:

> "Jesper Carlsson" <jc@triacon.se> writes:
>
> > Hi! From svndumpfilter help exclude: “Filter out nodes with given
> > prefixes from dumpstream.” I’ve also reed the manual. Is it
> > really just possible to filter with prefixes? I would like to use
> > the svndumpfilter to filter files like *.ext. Is this possible?
>
> No. When we say "with given prefixes", we actually mean it.
>
> > If not, could I use any filter to remove a specific file? Please
> > give some examples! I would appreciate help very much, thanks!
>
> Actually, I imagine it would be pretty trivial to teach svndumpfilter
> to filter based not on prefixes, but on file patterns. Are you up for
> a coding task? Basically s/prefix/pattern/ through the entirety of
> svndumpfilter/main.c, and then replace 'ary_pattern_match' (which was
> 'ary_prefix_match' :-) with svn_cstring_match_glob_list().
>
> (cross-posting to dev@ in case someone there wants to take on this
> bite-sized task)

Ooh, though perhaps only the 'exclude' subcommand should allow this,
since you would get almost guaranteed bustedness if you use anything
other than a prefix with the 'include' subcommand. For example, the
command 'svndumpfilter include *.doc' will keep Word files, but not
the parent directories which hold them. :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 7 16:20:41 2004

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

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