<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
On 1/02/12 10:03 PM, John Arbash Meinel wrote:<br>
<span style="white-space: pre;">> On 2/1/2012 11:46 AM, Brendan
Simon (eTRIX) wrote:<br>
>> My 'bzr tags' command produces the following:<br>
>><br>
>> v5.6.14 251 v5.6.14-rc1 246 v5.6.14-rc2<br>
>> 250 v5.7.0 301 v5.7.0-dev1 257 v5.7.0-dev2<br>
>> 259 v5.7.0-dev3 264 v5.7.0-dev4 280 v5.7.0-rc1<br>
>> 281 v5.7.0-rc2 300<br>
>><br>
>><br>
>> Note that the release candidates (-rc*) and dev builds
(-dev*) are <br>
>> displayed earlier than the final releases.<br>
>><br>
>> I want to display in revision order. Is there a way to
get bzr<br>
>> tags to display in chronological revision order ??<br>
>><br>
>> v5.6.14-rc1 246 v5.6.14-rc2 250 v5.6.14<br>
>> 251 v5.7.0-dev1 257 v5.7.0-dev2 259 v5.7.0-dev3<br>
>> 264 v5.7.0-dev4 280 v5.7.0-rc1 281 v5.7.0-rc2<br>
>> 300 v5.7.0 301<br>
>><br>
>><br>
>> The help (bzr tags --help) wasn't that helpful for the
sort<br>
>> arguments :( Note: using bzr 2.4.2.<br>
>><br>
>> Thanks, Brendan.<br>
>><br>
><br>
> bzr tags --sort=time<br>
><br>
> tag_sort_methods = Registry()<br>
> tag_sort_methods.register("natural", sort_natural,<br>
> 'Sort numeric substrings as numbers. (default)')<br>
> tag_sort_methods.register("alpha", sort_alpha, 'Sort tags<br>
> lexicographically.')<br>
> tag_sort_methods.register("time", sort_time, 'Sort tags
chronologically.')<br>
> tag_sort_methods.default_key = "natural"</span><br>
<br>
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) ;-)<br>
<br>
<br>
</body>
</html>