1806
Comment: clarify effect of a repository
|
2307
personal dirs
|
Deletions are marked like this. | Additions are marked like this. |
Line 33: | Line 33: |
== 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/~<login>/<project> $ bzr branch <login>@bzr.debian.org:~/public_bzr/<project> }}} |
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
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/~<login>/<project> $ bzr branch <login>@bzr.debian.org:~/public_bzr/<project>
?CategoryAlioth