You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jesper Carlsson <jc...@triacon.se> on 2004/10/07 13:58:38 UTC
Svndumpfilter
Hi! From svndumpfilter help exclude: Filter out nodes with given prefixes from
dumpstream.
Ive 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? If not, could I use any filter to remove a specific file? Please give
some examples!
I would appreciate help very much, thanks!
Best,
Jesper
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Svndumpfilter
Posted by Ulrich Eckhardt <ec...@satorlaser.com>.
Jesper Carlsson wrote:
> 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.
Hmmm, as said, it's not possible. However, you can create a list of files to
remove ('find -name \*.ext' or somesuch) and then use the whole path as
prefix for things to filter out. Thise requires that you don't have
any /foo/dir.ext/another_dir/file that you want to keep.
Uli
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Svndumpfilter
Posted by "C. Michael Pilato" <cm...@collab.net>.
"C. Michael Pilato" <cm...@collab.net> writes:
> "Jesper Carlsson" <jc...@triacon.se> writes:
>
> > Hi! From svndumpfilter help exclude: Filter out nodes with given
> > prefixes from dumpstream. Ive 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
Re: Svndumpfilter
Posted by "C. Michael Pilato" <cm...@collab.net>.
"C. Michael Pilato" <cm...@collab.net> writes:
> "Jesper Carlsson" <jc...@triacon.se> writes:
>
> > Hi! From svndumpfilter help exclude: Filter out nodes with given
> > prefixes from dumpstream. Ive 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: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
RE: Svndumpfilter
Posted by Jesper Carlsson <jc...@triacon.se>.
C. Michael Pilato:
>>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?<<
Thanks for your fast replay! But no, I'm not up for this task.
Best,
Jesper
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Svndumpfilter
Posted by "C. Michael Pilato" <cm...@collab.net>.
"Jesper Carlsson" <jc...@triacon.se> writes:
> Hi! From svndumpfilter help exclude: Filter out nodes with given
> prefixes from dumpstream. Ive 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)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Svndumpfilter
Posted by "C. Michael Pilato" <cm...@collab.net>.
"Jesper Carlsson" <jc...@triacon.se> writes:
> Hi! From svndumpfilter help exclude: Filter out nodes with given
> prefixes from dumpstream. Ive 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)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org