[PATCH] bzr status --versioned
warthog618 at gmail.com
Sat Feb 24 06:21:35 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Attached is a patch that adds a --versioned option to bzr status,
similar to the one already in bzr ls.
With the --versioned option all unknowns are omitted - effectively
they are treated as ignored.
I find this useful for those occasions where I can't be bothered
keeping .bzrignore up to date, or where the ignore patterns I want for
adds differ from those I want for status (for the status I just want
to see which versioned files have changed, damn it).
Sure, I could post-process the output of bzr status (or more likely
bzr status --short), but why waste CPU cycles generating and then
filtering unknowns I don't want to see?
As part of the patch I refactored TestStatus.test_status into 3 -
test_status_plain, test_status_short and test_status_versioned. I'm
not totally happy with that split (it repeats the test procedure 3
times), but I wasn't happy adding --versioned tests to the existing
case, which was big enough already, nor with trying to break the
procedure into separate cases. Any better suggestions?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7315 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070224/160c826c/attachment-0001.bin
More information about the bazaar