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

Re: Splitting out project from repo

From: Thorsten Schöning <tschoening_at_am-soft.de>
Date: Sat, 2 Mar 2013 15:49:45 +0100

Guten Tag Jonathan Petersson,
am Freitag, 1. März 2013 um 19:54 schrieben Sie:

> As mentioned, the repository is incredibly huge and it would take hours for each project.

That's no reason at all, your computer is doing all the work. How many
hours did you try to implement your own solution to automate the
process and it doesn't work? How many hours will you continue trying?
What will happen if everything seems to work properly and some bugs in
your rewritten dump files are recognized some days after splitting
your huge repo and result in corrupted history? How many hours are
needed to check out your working copies again, change your build
process and all those things? What's the reason behind trying to split
the source repo up in one effort and not do it as time is available?
You surely worked years with your huge repo until now, why not
continue working with it for some day or even weeks?

Some ideas on your script:

> svn log file://$repo $project

If I understand correctly, you manually retrieve each version where
the given path/project has changed in any way to afterwards dump those
revisions. Why is this better/faster than using svndumpfilter with
specifying an include path, but without the need to post process the
dump files? Are you sure your approach doesn't need other paths
from the repo, e.g. other source paths from copy operations for
projects or stuff like that?

> grep -e ".*r[0-9].*|.*"

This looks really imprecise to me, I would prefer something like
grep -E -e "^r[0-9]+ | "
just to be sure to really get what I want.

> svnadmin dump $repo --quiet -r $rev --incremental >> $project.$rev.bak

Adding to revision files with >> should be impossible in your
approach.

> svnadmin setuuid $project

This should be unnecessary as you created a new repo per project and
use --ignore-uuid during loading data into the repo.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail:Thorsten.Schoening_at_AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/
Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04
AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow
Received on 2013-03-02 15:50:25 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.