Help with Bzr-Git

Martin Pool mbp at canonical.com
Wed Jul 14 17:14:00 BST 2010


On 14 July 2010 18:02, Daniel Carrera <dcarrera at gmail.com> wrote:
> Excellent, it works now. PPAs are cool.
>
> Can I ask a couple of questions about Bazaar?:
>
> 1) Does "bzr push" automatically push all branches to the server (as
> in Mercurial) or do you have to do something special to push a branch?

It pushes one at a time.  There is a bzr multi-push plugin.

>
> 2) How can you use the "shelve" command to put aside a specific hunk
> in a file? For example:
>
> # Add a file.
> echo "Line 1\nLine 2\nLine 3\nLine 4" > file
> bzr add file
> bzr commit -m 'Initial commit'
>
> # Change two lines.
> echo "Hello\nLine 2\nLine 3\nWorld" > file
> bzr shelve
>
>
> This doesn't give me the option to shelve the first change but not the second.

Shelve puts aside uncommitted changes in the working tree, so things
you already committed are out of scope.  It's a little bit like the
git staging area.
>
> I am trying to write some information about Bazaar for a Git-using
> project. I've sent a couple of emails asking for help, but nobody
> replies. Maybe everyone is at the beach for the summer.

Actually a lot of us are hacking at the Launchpad Epic conference, so
not reading mail much.  Not sure about Jelmer.

-- 
Martin



More information about the bazaar mailing list