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

Mirroring public CVS repository as SVN

From: Dave Lawrence <dlawrence_at_ad-holdings.co.uk>
Date: Tue, 17 Jun 2008 11:18:15 +0100

Hello,

I have a script (attached) that mirrors a public CVS repository locally
as a Subversion repository. Each night it updates the local CVS copy
using rsync, then converts it with cvs2svn. cvs2svn doesn't seem to
have an "incremental" feature, so the previous conversion is deleted and
a new one created from scratch.

The problem is that each time, the UUID changes, so a working copy
checked out the previous day will no longer talk to the repository.

Possibly I shouldn't be using a working copy in this scenareo (after all
it's a read-only mirror), I can still take advantage of "export" and
"merge".

Anyone got any better thoughts on how to do this?

#!sh

#NB rsync, cvs2svn and svnserve are ALL cygwin builds.

rsync -r rsync://sourceware.org/ecos-cvs cvs > logs/rsync_out.txt 2> logs/rsync_err.txt
rm -rf svn/ecos_mirror > logs/delete_out.txt 2> delete_err.txt
cvs2svn -s svn/ecos_mirror --retain-conflicting-attic-files --default-eol=CRLF --fallback-encoding=ascii cvs > logs/cvs2svn_out.txt 2> logs/cvs2svn_err.txt

# Ensure svnserve is running (in case we had a restart)
svnserve -d --root /cygdrive/c/ecos_mirror/svn

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-17 12:18:53 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.