How to set up bzr server

Paul Schauble Paul.Schauble at ticketmaster.com
Tue Sep 2 02:46:42 BST 2008


Ok then. This may be closer.

On the machine with the populated bzr I do
  Bzr serve --allow-write --directory=\a\b
That this bzr contains files is confirmed by bzr status.

On the other machine I do
  Bzr branch bzr://machine1/c c

This gives "Branched 0 revisions".  Why?

    ++PLS

-----Original Message-----
From: Andrew Bennetts [mailto:andrew at canonical.com] 
Sent: Monday, September 01, 2008 4:51 PM
To: Paul Schauble
Cc: bazaar at lists.canonical.com
Subject: Re: How to set up bzr server

Paul Schauble wrote:
> I think I'm missing something about repository organization.
[...]
> On machine 1, I started with c:\a\b\c containing a set of source
files. In this
> directory I did
> 
> Bzr init
> 
> Bzr add a whole bunch of files
> 
> Bzr serve -allow-write -director \a\b\c
[...]
> Bzr branch bzr:\\machine1\c
> 
> And I receive the message "c is not a branch".

The problem here is that the root that you are serving from is \a\b\c,
and then
the URL you give to bzr branch says you want to access \c inside the
server.
So, it is effectively trying to branch from \a\b\c\c on the server,
which of
course fails.

If you did "bzr serve --allow-writes --directory \a\b", then your "bzr
branch bzr://machine1/c" command would work.

Alternatively, you could do "bzr branch bzr://machine1/" and not change
the
directory you are serving from.

-Andrew.




More information about the bazaar mailing list