[PATCH] bzr --version prints branch nickname

John A Meinel john at arbash-meinel.com
Thu Dec 1 00:23:14 GMT 2005


Aaron Bentley wrote:
> John A Meinel wrote:
> | ...I thought it might be nice if "bzr
> | --version" prints the branch-nick, since we have them.
> 
> What you're actually doing is printing the nick of the last-revision.
> That may be what you want, but if you want the branch's current nick,
> you can get it from Branch.nick.
> 
> Aaron

Yeah, I wasn't sure which one was better.
If the tree was pristine, then I might actually prefer the
last-revision. Because whatever I've named it, it hasn't actually been
used for that yet.

On the other hand, if it was unclean, it would be nice to know that. But
I think a clean/unclean check is way too expensive for "bzr --version".
(however it makes lots of sense for something like setup.py).

I'll solicit feedback. Which do people think is best, branch.nick or
last_revision.nick? (That's part of why I didn't integrate it yet).

John
=:->

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051130/d4753103/attachment.pgp 


More information about the bazaar mailing list