On Fri, Mar 2, 2012 at 10:41 AM, Geoff Hoffman
<ghoffman_at_cardinalpath.com> wrote:
> I'm learning some gotchas with svnsync this week. As per my typical method
> of learning I try 3 wrong ways before finally realizing the right way to do
> most things.
>
> We have about a 1GB svn repo on Ubuntu at -r 3738, and I'm trying to get it
> mirrored on Win 7 running VisualSVN.
>
> I created the mirror repository fine, ran svnsync init and svnsync sync on
> it, then as it started going from -r 1, -r 2, -r 3..., I realized it would
> take a week or more to fetch all nearly 4K commits.
>
> So I stopped it, deleted it, started over and did an svnadmin dump -->
> svnadmin load from the dump -- which ran/imported much faster, but now when
> I try to initialize the sync, I get
>
> svnsync: Cannot initialize a repository with content in it
>
> D'OH! I forgot to svnsync init after creating the empty mirror repo. Whoops.
>
> So, my question is, before I whack a perfectly fine "almost mirrored"
> repository, can I svn propset -r 0 all the stuff needed by svnsync manually,
> to start syncing at -r 3738?
>
> Or can I set up the repo again (svnadmin create immediately followed by
> svnsync init) and then svnadmin load (since load from a dump is so much
> faster)?
>
> It would seem odd that the only way to mirror a repo is to replay everything
> from -r 0.
This is, in fact, a limitation of svnsync. You can manually setup the
properties on r0 as one option, or if you have svnsync from 1.7
installed, you can use the new --allow-non-empty option on the init
command and it essentially will do the same thing for you.
--
Thanks
Mark Phippard
http://markphip.blogspot.com/
Received on 2012-03-02 16:46:30 CET