[MERGE] Switch nick too
John Arbash Meinel
john at arbash-meinel.com
Wed Jul 23 16:52:02 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Matthew D. Fuller wrote:
> On Wed, Jul 23, 2008 at 12:21:33PM +1000 I heard the voice of
> Rob Weir, and lo! it spake thus:
>> 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.
> Even more consistent would be if they properly set the nick on the
> initial checkout too.
Or just always returned the nick of the master branch, if that is what we
really want. Then you wouldn't have to hack around it in every command that
might do something to effect the nick.
master = self.get_master_branch()
if master is None:
# return the local value
config = self.get_config()
config = master.get_config()
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the bazaar