[MERGE] RegistryOption

Aaron Bentley aaron.bentley at utoronto.ca
Mon Jan 8 13:52:05 GMT 2007


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

Hi all,

This bundle adds a new option type: RegistryOption.  This allows an
option to be derived from a Registry.  It also implements it for the
BzrDir registry.

This allows automatic detection of invalid values, and a uniform way of
getting the option type.

If value_switches is True, it also provides individual switches for each
possible value.  This is similar to the way the various log formats
work: You can do "log --short" or "log --log-format short".

The diference is that Optparse recognises that the options are mutually
exclusive.  So "bzr init --metaweave --knit" will select "knit", but
"bzr init --knit --metaweave" will select "metaweave".  And "bzr init
- --knit --format=weave" will select "weave".

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

iD8DBQFFokyF0F+nu1YWqI0RAv3BAJ9OFN0dpvfR9oaniQKx5W4vZBvi6QCdHkg5
5OqEWebb92kIHmdQSQnLvYI=
=L+VC
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: registryoption.patch
Type: text/x-patch
Size: 36321 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070108/a3d9883f/attachment-0001.bin 


More information about the bazaar mailing list