SVNDumpFilter include branches, too?

1.4k Views Asked by At

I am trying to split out a repo that has multiple projects in it into stand-alone repos. Let's say I have the following structure, currently:

   /MyRepo
        /Trunk
            /Source
                /Project1
                    ...
                /ProjectN
        /Branches
            /Branch1
                /Source
                    /Project1
                        ...
                    /ProjectN
            /AnotherProject
                /Branch3 >> Note: nested branch
                    /Source
                        /Project1

So if I wanted to dump Project1, I want to get all related paths, that could be:

  • /MyRepo/Trunk/Source/Project1/
  • /MyRepo/Branches/Branch1/Source/Project1
  • /MyRepo/Branches/AnotherProject/Branch3/Source/Project1

Basically I want to include all references to Project1 from Trunk and Branches, including nested branches.

Is there any way to accomplish this?

1

There are 1 best solutions below

1
Lazy Badger On BEST ANSWER
  • In easy case you can svndumpflter include with a set of paths in one command (handwork)
  • You can (?) also play with --pattern option (if instead of enumerating paths by substring you can build glob-pattern) - see Examples from SVN Book page