[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Moving an existing Repository to a newly created repository

From: Nico Kadel-Garcia <nkadel_at_gmail.com>
Date: Sun, 26 Jun 2011 19:25:55 -0400

On Fri, Jun 24, 2011 at 2:28 PM, Tech Geek <techgeek12345_at_gmail.com> wrote:
> All our SVN repositories are stored at /var/lib/svn.
>
> Let's say we have an existing repository called "ProjectA" i.e.
> /var/lib/svn/ProjectA. We created a brand new fresh repository called
> "Projects" like this /var/lib/svn/Projects.
>
> Now we would like to rename our existing repository "ProjectA" to
> simply "A" and then move it (maintaining all the revisions,
> prop-changes, etc.) under /var/lib/svn/Projects repository.

This is common when previously distinct projects are brought under a
single repo. It can be done with svnadmin dump, svnadmin filter to
trim out debris, and svnadmin load, but it's tricky. In particular,
working copies *will not* be amenable to an "svnadmin switch" command.
You'll need to do checkouts from the new repository, and the revision
numbers of changes in your old history will not match those in the new
repositoriy's history. So date-sorting changes may be.....
adventuresome, and coordinating your old svn:externals for the new
repositories will take thought.

Similar issues occur when splitting up a set of projects to multiple
repositories.
Received on 2011-06-27 01:26:26 CEST

This is an archived mail posted to the Subversion Users mailing list.