[MERGE][#133782] Fix UnboundLocalError in cmd_cat

Aaron Bentley aaron.bentley at utoronto.ca
Sun Dec 2 14:48:53 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lukáš Lalinský wrote:
> If 'bzr cat' gets a non-branch URL as an argument, it fails with
> UnboundLocalError. The previous fix [1] was vetoed, because it kept the
> old code, which tried to use the branch from '-r branch:URL'. This one
> just let's open_containing_tree_or_branch to fail with NotBranchError.

It's not the branch: revision spec that provides a branch.  It's the
revno revision spec.  e.g.

$ bzr log -r1:/home/abentley/Cart

If you're not going to use branches specified this way, you should
probably error instead of ignoring.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHUsXV0F+nu1YWqI0RAt6RAJ4jNiDQSYhMkTt1W8R4vzQvDImCMACfTwNn
C4iM63tbaEXzOb0RX/ytWZg=
=DzWK
-----END PGP SIGNATURE-----



More information about the bazaar mailing list