[MERGE] Switch nick too

Marius Kruger amanic at gmail.com
Wed Jul 23 06:26:07 BST 2008


thanks for looking at this

2008/7/23 Rob Weir <rweir at ertius.org>:

> On 21 Jul 2008, Marius Kruger wrote:
> > I've been using `bzr switch` a bit recently, and I'm thinking
> > it will be nice if it will update the branch's nick too
> > to be the nick of the new branch we're binding to.
> > It makes sense if you use a checkout as a working branch
> > and switch between other local branches for current work.
>
> Great - lightweight checkouts already work like this, so it would be
> good to make regular ones consistent.


I wasn't actually aware of this. thx

> +    def test_switch_nick(self):
> > +        """Check that the nick gets switched too."""
> > +        tree1 = self.make_branch_and_tree('branch1')
> > +        #tree1.commit('foo')
> > +        tree2 = self.make_branch_and_tree('branch2')
> > +        tree2.pull(tree1.branch)
> > +        #branch2_id = tree2.commit('bar')
>
> If the commented lines aren't needed, maybe just remove them for clarity?


yes thanks, I removed them.
I also added news, and updated the help.

regards
marius
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20080723/f32d7377/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: switch_nick2.patch
Type: text/x-diff
Size: 6748 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080723/f32d7377/attachment.bin 


More information about the bazaar mailing list