Best practice for bzr-svn mirror?

Jelmer Vernooij jelmer at samba.org
Sat Feb 21 13:37:59 GMT 2009


On Sat, 2009-02-21 at 16:35 +1100, Jonathan Lange wrote:
> Hello,
> 
> I was thinking about setting up a mirror of a Subversion project into
> Bazaar. The project uses branch-based development, so I'd like each of
> Subversion "branches" to be available as Bazaar branches, as well as
> the trunk.
> 
> Ideally, people would be able to branch from the trunk and push it to
> Launchpad or whatever.
> 
> Has anyone done this kind of thing before? Is there a howto? Any gotchas?
Run something like this from a cron job:

$ bzr svn-import --incremental <repos-url> <local-path>

That will keep a shared repository with all of the bzr branches up to
date. It'll also remove branches once they disappear from svn.

Cheers,

Jelmer
-- 
Jelmer Vernooij <jelmer at samba.org> - http://samba.org/~jelmer/
Jabber: jelmer at jabber.fsfe.org




More information about the bazaar mailing list