Differences between revisions 5 and 6
Revision 5 as of 2007-09-21 18:13:03
Size: 1712
Editor: ?RolandMas
Comment: Added recommendation for shared repositories
Revision 6 as of 2007-09-22 12:04:33
Size: 1713
Comment:
Deletions are marked like this. Additions are marked like this.
Line 28: Line 28:
    bzr init-repo sftp://<user>bzr.debian.org/bzr/<group>/whatever     bzr init-repo sftp://<user>@bzr.debian.org/bzr/<group>/whatever

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, rsync over ssh, or http for read-only access. To push a new branch to the server using SFTP say:

   bzr push --create-prefix sftp://<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 SFTP like this:

    bzr checkout sftp://<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 sftp://<user>@bzr.debian.org/bzr/<group>/whatever

You can then store your branches in subdirectories, such as /bzr/<group>/whatever/stable and /bzr/<group>/whatever/devel.


?CategoryAlioth