How to clone a bzr repository

Colin D Bennett colin at gibibit.com
Tue Dec 30 08:16:42 GMT 2008


On Mon, 29 Dec 2008 23:34:51 -0800
Colin D Bennett <colin at gibibit.com> wrote:

> On Sun, 28 Dec 2008 16:47:28 +0100
> "Dmitri Pissarenko" <dmitri.pissarenko at gmail.com> wrote:
> 
> > Hello!
> > 
> > I have a bazaar repository on my Windows machine.
> > 
> > I want to clone this repository on my xubuntu machine, which is
> > connected to the Windows machine.
> > 
> > Basically, I want to "pull" the repository from the Windows machine
> > to the ubuntu machine.
> > 
> > What steps must be done in order to do this via Bazaar smart server
> > protocol or FTP?
> > 
> > When using FTP I see that the FTP server on the Windows machine
> > establishes a connection to the ubuntu machine, but no data are
> > transferred and, in the end, bazaar (on the xubuntu machine) tells
> > me that some problem has occured during transmission.
> > 
> > Thanks in advance
> > 
> > Dmitri Pissarenko
> 
> You might check out the repo-push plugin
> <https://launchpad.net/bzr-repo-push>
> or the bzr-mirror plugin <https://code.launchpad.net/bzr-mirror>.
> 

I just realized you may mean that you have a *branch* that you want to
clone.  A repository is generally considered to be a collection of
multiple branches stored under a single location, and that is what the
repo-push and bzr-mirror plugins are good for.

If you just want to clone a single branch, then you should be able to
just do a "bzr branch REMOTE_URL my_dir" you get a location branch of
REMOTE_URL in the directory my_dir.  The 'pull' command can then be
used to pull new changes from the "parent" branch, which is REMOTE_URL.
(But pull is usually best used when you aren't making changes to the
'my_dir' branch.  If you make changes, you'll generally need to do 
'bzr merge' instead.)

Regards,
Colin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20081230/6a7373f5/attachment.pgp 


More information about the bazaar mailing list