Sorting tags
John Arbash Meinel
john at arbash-meinel.com
Wed Feb 1 13:58:10 UTC 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
...
>> bzr tags --sort=time
>>
>> tag_sort_methods = Registry()
>> tag_sort_methods.register("natural", sort_natural, 'Sort numeric
>> substrings as numbers. (default)')
>> tag_sort_methods.register("alpha", sort_alpha, 'Sort tags
>> lexicographically.') tag_sort_methods.register("time", sort_time,
>> 'Sort tags chronologically.') tag_sort_methods.default_key =
>> "natural"
>
> Thanks. So ideally the help for bzr tags should show the available
> sort args (natural, alpha, time), and/or pointers on how to
> discover any custom sort methods (or be able to display info on the
> custom sort methods) ;-)
>
>
There is already an open bug about 'bzr help' not showing possible
values for RegistryOptions that don't expose the individual values as
flags. I don't remember the number offhand, but that's certainly what
you are hitting.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk8pRPIACgkQJdeBCYSNAAP4WwCgjUALVtAXTT/T6sgmcq/8IuF/
524An1souDr4fdkFmzy9AMrXOglY6cxu
=NGdE
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list