Using Bzr on Alioth

Creating a new public Bzr repository (for a new project)

Bzr repository on bzr.debian.org doesn't get created with a new project, you have to request it at the [https://alioth.debian.org/tracker/?group_id=1&atid=200001 Tracker: Support Requests].

The bzr.debian.org admins will create a directory named /srv/bzr.debian.org/bzr/project-name owned by your project group which will be accessible by bzr using sftp, bzr-over-ssh (recommended), rsync-over-ssh, or http for read-only access. To push a new branch to the server using Bazaar over SSH say:

   bzr push --create-prefix bzr+ssh://<user>@bzr.debian.org/bzr/<group>/whatever

Using --create-prefix causes any new elements in the path to be created. You may also want to use the --remember option to make this the default destination for future pushes.

To check out or branch from the server with read/write access you can use Bazaar over an SSH transport like this:

    bzr checkout bzr+ssh://<user>@bzr.debian.org/bzr/<group>/whatever

(or bzr branch if you'd like). Anonymous users can get read-only access with:

    bzr branch http://bzr.debian.org/bzr/<group>/whatever

If you intend to host several related branches on Alioth, it might be advisable to use a shared repository for them, in order to save space and speed up operations (revisions common to several branches are only stored once in a shared repository, instead of once per branch). To do that, you'll first have to initialise the repository with:

    bzr init-repo bzr+ssh://<user>@bzr.debian.org/bzr/<group>/whatever

Any new branches you create in subdirectories, such as /bzr/<group>/whatever/stable and /bzr/<group>/whatever/devel, will store their revision data in the repository.

Using personal bzr repositories

It is also possible to have personal bzr repositories. Just log in on alioth, then

$ mkdir ~/public_bzr

and put your bzr repositories there, e.g. <project>.

After a few hours they will be automatically detected and listed on http://bzr.debian.org. The repositories are available through the following URLs:

$ bzr branch http://bzr.debian.org/bzr/users/<login>/<project>
$ bzr branch bzr+ssh://<login>@bzr.debian.org/bzr/users/<login>/<project>


?CategoryAlioth