[RFC] Repository copies

Jelmer Vernooij jelmer at samba.org
Tue Dec 19 17:40:01 GMT 2006


Hi,

I've been looking at creating some sort of clone-repository command.
There are a couple of use cases for this, for example when you'd like to
mirror a complete Bazaar repository and underlying branches remotely. 

Another case is the "svn-import" command that is part of bzr-svn. It
basically mirrors a remote Subversion repository locally. 

It seems that the easiest way to implement something like this would be
to add a Repository.find_branches() function. The default implementation
could simply act like bzrtools' "branches" command does now - scanning
the filesystem for .bzr directories and trying to open them as branches.
There could then be a "clone-repository" command, perhaps as part of
bzrtools at first. 

Any thoughts on adding Repository.find_branches() ?

Cheers,

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




More information about the bazaar mailing list