I have an SVN repository containing multiple top-level folders, one per project. Inside each project folder is the usual trunk, branches, tags.
I need to move one of these project folders into its own independent repository for export and subsequent import on to another server. The new single-project repository must contain only the revision history for that project, and none from the other projects.
Any ideas on how best to proceed?
Server is VisualSVN Server on Windows, although this shouldn’t make any difference.
You can use
svnadmin dump, pipe the output throughsvndumpfilterand the output of that tosvnadmin load.The
svndumpfilteris made to do exactly what you want to do. You can use theincludesubcommand to specify the project you want in the repository and leave out the rest.The
svnadmin loadallows you to specify the directory in the repository where you want the output stored.Take a look at the Repository Maintenance section of the on line manual.