You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Robert Bielik <ro...@xponaut.se> on 2008/09/07 08:25:55 UTC

Filtering and moving a repo

Hi all,

We're using SVN via Apache and I want to filter out a file from a repo A. So I figured I'd do:
1. dump the repo with svnadmin dump /var/svn/repos/A
2. filter dump file with svndumpfilter exclude Path/to/file/to/remove --drop-empty-revs --renumber-revs
3. load the filtered dump file into an empty repo B
4. mv /var/svn/repos/A /var/svn/repos/_A
5. mv /var/svn/repos/B /var/svn/repos/A

Since repo B was empty it should get the UUID of repo A (from the dump file), so this operation should be
transparent to svn clients ??

I wanted to ask before I possibly f-ck it up for clients that have repo A on their machines.

TIA
/R


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: Filtering and moving a repo

Posted by Bert Huijben <be...@vmoo.com>.
> -----Original Message-----
> From: Robert Bielik [mailto:robert.bielik@xponaut.se]
> Sent: zondag 7 september 2008 10:26
> To: users@subversion.tigris.org
> Subject: Filtering and moving a repo
> 
> Hi all,
> 
> We're using SVN via Apache and I want to filter out a file from a repo
> A. So I figured I'd do:
> 1. dump the repo with svnadmin dump /var/svn/repos/A
> 2. filter dump file with svndumpfilter exclude Path/to/file/to/remove -
> -drop-empty-revs --renumber-revs
> 3. load the filtered dump file into an empty repo B
> 4. mv /var/svn/repos/A /var/svn/repos/_A
> 5. mv /var/svn/repos/B /var/svn/repos/A
> 
> Since repo B was empty it should get the UUID of repo A (from the dump
> file), so this operation should be
> transparent to svn clients ??

After you dump-filter-load your repository you changed history for the
clients. In this case the uuid should change and all users must re-checkout
to create working copies from the new repository.

The previous versions for the working copy were changed and the
change-deltas communicated between the repository and the working copy would
be invalid.

See http://subversion.tigris.org/faq.html#removal and
http://subversion.tigris.org/issues/show_bug.cgi?id=516 
for more details.

	Bert
 
> I wanted to ask before I possibly f-ck it up for clients that have repo
> A on their machines.
> 
> TIA
> /R
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org