svndumpfilter exclude — Filter out nodes with given prefixes from the dump stream.
svndumpfilter exclude PATH_PREFIX...
This can be used to exclude nodes that begin with one or
PATH_PREFIXes from a
filtered dump file.
If we have a dump file from a repository with a number
of different picnic-related directories in it, but we want
to keep everything except
sandwiches part of the
repository, we'll exclude only that path:
$ svndumpfilter exclude sandwiches < dumpfile > filtered-dumpfile Excluding prefixes: '/sandwiches' Revision 0 committed as 0. Revision 1 committed as 1. Revision 2 committed as 2. Revision 3 committed as 3. Revision 4 committed as 4. Dropped 1 node(s): '/sandwiches' $
Beginning in Subversion 1.7,
svndumpfilter can optionally treat
PATH_PREFIXs not merely as
explicit substrings, but as file patterns instead. So,
for example, if you wished to filter out paths which ended
.OLD, you would do the
$ svndumpfilter exclude --pattern "*.OLD" < dumpfile > filtered-dumpfile Excluding prefix patterns: '/*.OLD' Revision 0 committed as 0. Revision 1 committed as 1. Revision 2 committed as 2. Revision 3 committed as 3. Revision 4 committed as 4. Dropped 3 node(s): '/condiments/salt.OLD' '/condiments/pepper.OLD' '/toppings/cheese.OLD' $