Skip to contentSkip to conversation

Personal branches in Bazaar repository

DISCUSSION Robert Millan 2 participants 2 messages Oct 24, 2009

lore
Share & tools
lore
#0 lore raw

Now that I have a bit more time, I explain about my own GRUB branches. They live in:

http://bzr.savannah.gnu.org/r/grub/people/robertmh

and consist of a few pieces of unfinished work I used to have scattered around my filesystem.

If others find it convenient to host their own branches at Savannah, they may do that with e.g.

username=foo

  bzr branch sftp://${username}@bzr.savannah.gnu.org/srv/bzr/grub/trunk/
  # hack
  bzr commit
  bzr push --remember sftp://${username}@bzr.savannah.gnu.org/srv/bzr/grub/people/${username}

If they prefer a Subversion-like workflow (i.e. commit implies push), they can checkout the branch afterwards:

  bzr checkout sftp://${username}@bzr.savannah.gnu.org/srv/bzr/grub/people/${username}

and work basically the same as they would in Subversion.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#1 lore raw
Quoted 11 lines · Robert Millan
  bzr branch sftp://${username}@bzr.savannah.gnu.org/srv/bzr/grub/trunk/
  # hack
  bzr commit
  bzr push --remember sftp://${username}@bzr.savannah.gnu.org/srv/bzr/grub/people/${username}

If they prefer a Subversion-like workflow (i.e. commit implies push), they can checkout the branch afterwards:

  bzr checkout sftp://${username}@bzr.savannah.gnu.org/srv/bzr/grub/people/${username}

and work basically the same as they would in Subversion.

Just another detail which may be useful: if you've done the former (branch, push) and want to convert it into the latter (checkout) without having to fetch the branch again from scratch, then you can do this:

bzr bind :push

This converts the local branch into a checkout of the remembered push location.

I would also generally recommend using bzr+ssh:// rather than sftp:// URLs. sftp:// involves copying all the metadata back and forward for a number of operations. bzr+ssh:// runs a smart server on the remote system and interacts with that, which is generally much faster. If you do this, you'll need to drop /srv/bzr from the URL as well, so:

  bzr branch bzr+ssh://${username}@bzr.sv.gnu.org/grub/trunk

Although I'm not a Bazaar developer myself, I have a lot of experience with using it, and am happy to offer assistance to any GRUB developers who may run into problems.

Signature · 1 line
Colin Watson                                       [[email protected]]