[PATCH] bzr ls broken

John A Meinel john at arbash-meinel.com
Thu Oct 27 21:59:27 BST 2005


I was playing around with "bzr ls", and found that it was broken in the
latest version.
The line at fault is:
	b, relpath = Branch.open_containing('.')[0]

I also found that there were no tests for ls.

So I decided to expand the functionality, and add some blackbox tests.
Attached is a changeset which defines allows "bzr ls" to take
--revision, --verbose, --null, --unknown, --versioned, and --ignored

Along with some tests for those entries.
The branch is available here:
http://bzr.arbash-meinel.com/branches/bzr/ls/

I'm guessing it wouldn't be too hard to add '--added', etc
functionality. But it wasn't perfectly straightforward, so I didn't do it.

John
=:->

PS> Probably --null should be made into a global option, with a short
form of "-0"
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ls-with-args.cset
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20051027/7d6f3ed8/attachment.diff 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ls-extra-tests.cset
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20051027/7d6f3ed8/attachment-0001.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/20051027/7d6f3ed8/attachment.pgp 


More information about the bazaar mailing list