Re: Can svndumpfilter exclude specific named nodes only ?
On 8/3/2016 5:35 PM, Kerry, Richard wrote:
> My understanding from the documentation is that svndumpfilter may be
> requested to exclude all nodes whose names have a specific prefix (ie
> this will exclude the named node and all its children).
> My specific requirement is to exclude specific named nodes (and not
> their children). Is it possible to request svndumpfilter to do this ?
> The reason for this is that I am using cvs2svn to convert projects
> that need to end up inserting files/nodes within an existing repo
> tree. In this case the dump file produced will include all nodes down
> from the root to the folder I am specifically interested in adding.
> This includes Root, Root/trunk, Root/tags, Root/branches, which
> already exist ('Root' here being just an example of the name at the
> top of the tree). When I attempt to load this using svnadmin load it
> aborts as these already exist. So I need them not to be present in
> the dump (or some significantly different approach).
> At the moment I can manually edit them out, as there aren't many,
> which results in the tree as I want it (*), but I wondered if I could
> get svndumpfilter to do the job for me.
> (*) Almost, but I'll ask about that separately.
Atm I can think of the following way (hope I got your requirements correct):
split up the load into separate chunks.
1. import everything excluding the whole Root-node - using dumpfilter
2. import the separate child-nodes (aka: Root/branches/) using
dumpfilter include in combination with svnadmin load --parent-dir [Dir]
(aka: svnadmin load --parentdir [Dir]
Would that solve your case?
Received on 2016-08-03 18:27:46 CEST
This is an archived mail posted to the Subversion Users