Re: Svndumpfilter

"C. Michael Pilato" <[email protected]>
Newsgroups gmane.mail.eyebrowse.user,gmane.comp.version-control.subversion.devel
Message-ID <m38yaivcg7.fsf__10008.181553758$1097158888$gmane$org@localhost.localdomain>
"C. Michael Pilato" <[email protected]> writes:

> "Jesper Carlsson" <[email protected]> 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. :-)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.