[PATCH] bzr gives the right error when not in a branch
John A Meinel
john at arbash-meinel.com
Mon Jan 16 20:20:52 GMT 2006
We came across this a while ago, but I found it again, and decided it
might make a good fix for bzr 0.7rc2
Basically, it used to be if you ran a command on the local filesystem
which accidentally wasn't a branch, it would give you a bogus error:
$ cd /tmp
$ bzr log
bzr: ERROR: Not a branch: /
Now I've fixed it to give the correct error:
$ bzr log
bzr: ERROR: Not a branch: /tmp
It is a minor fix, but it comes with a test case.
This is present on my jam-pending branch (revno 1505)
John
=:->
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: correct-working-tree-error.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20060116/45b97eee/attachment.diff
-------------- 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/20060116/45b97eee/attachment.pgp
More information about the bazaar
mailing list