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

Possible to load part of a dump file into an existing repo?

From: Xn Nooby <xnooby_at_gmail.com>
Date: Fri, 27 Feb 2009 13:57:33 -0500

Is it possible to load part of a dump in to an existing repo?

I have a branch, say ClientB, that is based on the branch ClientA. I
created ClientB by using an "svn copy" from CLientA. For example:

   svn copy svn://myrepo/clienta/trunk svn://myrepo/clientb

Now, I want to give ClientB access to their source code, but I don't
want them to be able to see ClientA changes in the svn log. So I plan
to split myrepo in to two repos: clienta_repo and clientb_repo.

I ran in to an existing problem when I tried to create the ClientB
repo. When I tried dumping myrepo, and using svndumpfilter to only
include ClientB entries, I got the error "svndumpfilter: Invalid copy
source".

   svndumpfilter include myrepo/clientb > clientb_dump.txt

Googling showed that the ClientB history that went back in to ClientA,
was not able to be dumped because I was only including the ClientB
branch. Which makes sense.

Apparently, there is no way around this using svndumpfilter.

So I am wondering if I can export ClientA as of the revision CLientB
was "svn copied", and then somehow dump and load the history of
ClientB from that revision. The goal would be to have a clientb_repo
that had an initial version from ClientA, plus just the ClientB
history of changes.

I suspect I can delete all the entries in the clientb_dump.txt up to
the revision number of when it was supposed to have been created.

Any suggestions?

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1240371

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-27 19:58:18 CET

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.