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

Re: Question on svnsync - want to quickly start from rev 800000

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Thu, 04 Feb 2010 12:21:06 +0000

Julian Foad <julian.foad_at_wandisco.com> writes:

> (How to quickly generate empty revisions? Using the bindings should be
> fast and might let you commit a completely empty revision. "svnmucc" and
> "svn" do not let you commit an empty revision,

You can use dump/load and svndumpfilter to generate empty revisions:

  rm -rf repo && svnadmin create repo
  svn mkdir -mm file://`pwd`/repo/foo
  svnadmin dump repo | svndumpfilter exclude foo > emptyrev
  rm -rf repo && svnadmin create repo
  for i in `seq 1 1000` do ; svnadmin load -q repo < emptyrev ; done

You could create all 800,000 revisions like this but it's faster to
use a bigger dump file, so after you have 1000 revs do:

  svnadmin dump repo > 1000emptyrevs
  for i in `seq 1 799` do ; svnadmin load -q repo < 100emptyrevs ; done

Do it in a RAM filesystem for speed -- in a tmpfs filesystem my
low-end desktop machine can create about 1000 revisions per second.

Received on 2010-02-04 13:21:45 CET

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