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

Re: Migrating to a new repository

From: Ryan Schmidt <subversion-2008b_at_ryandesign.com>
Date: Fri, 30 May 2008 21:41:42 -0500

On May 30, 2008, at 08:49, Laker Netman wrote:

> Ryan Schmidt wrote:
>> On May 29, 2008, at 16:26, Laker Netman wrote:
>>> I am preparing to migrate the contents of an existing repo to a
>>> new, empty one. I read the section in the SVN book regarding
>>> filtering repository history (w/svndumpfilter), but I don't think
>>> it does what I need.
>>> There are a large number of (easily grouped) files, of various
>>> types, that I want *copied to*, but no longer *versioned in*, the
>>> new repository. The svn:ignore property ultimately does what I
>>> want, but how I can go about moving the contents from one repo to
>>> another, making some files non-versioned in the process? Is there a
>>> method to do this to the existing repo somehow prior to moving the
>>> files? If I set the svn:ignore property to the files I no longer
>>> want versioned in the existing repo will they still copy over to
>>> the new repo (unversioned)?
>>> Ultimately, I want to keep the rev history from the existing repo,
>>> or I'd just export the files and start over.
>> Ignored files are not stored in the repository. Unversioned files
>> aren't either; that's what unversioned means. So if there are files
>> you don't want in the new repository, you'll have to filter them out
>> of the old repository's dumpfile with svndumpfilter before you load
>> it into the new repository.
> Yes, thank you, I understand all of the terminology. Perhaps I
> wasn't clear enough. How do I move *all* files under version
> control in repo A to repo B where
> some files from repo A should still be version controlled and
> others not? I've been experimenting on a test repo. Once a file is
> under version control and then the ignore property is set on it,
> the property has no effect. The file remains under control of
> Subversion. svndumpfilter, from my understanding of the docs, works
> over "time", not repo structure.

Can you give me an example?

As I see it, I imagine you have repo A which contains directories 1,
2, and 3, and you want to migrate everything to repo B except for
directory 2. Then you would svnadmin dump repo A, svndumpfilter it to
exclude 2, and svnadmin load the result into repo B.

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-05-31 04:42:09 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.