Patchwork tests: make hghave list features alphabetically

login
register
mail settings
Submitter Yuya Nishihara
Date Oct. 4, 2014, 10:37 a.m.
Message ID <873141518d7b02d2c232.1412419044@mimosa>
Download mbox | patch
Permalink /patch/6107/
State Accepted
Headers show

Comments

Yuya Nishihara - Oct. 4, 2014, 10:37 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1412410942 -32400
#      Sat Oct 04 17:22:22 2014 +0900
# Node ID 873141518d7b02d2c23220850f3b85722bfeead8
# Parent  9b04af3305559a96ee310e9ba6766de1c4ffa63a
tests: make hghave list features alphabetically
Matt Mackall - Oct. 6, 2014, 6:56 p.m.
On Sat, 2014-10-04 at 19:37 +0900, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya@tcha.org>
> # Date 1412410942 -32400
> #      Sat Oct 04 17:22:22 2014 +0900
> # Node ID 873141518d7b02d2c23220850f3b85722bfeead8
> # Parent  9b04af3305559a96ee310e9ba6766de1c4ffa63a
> tests: make hghave list features alphabetically

Queued for default, thanks.

Patch

diff --git a/tests/hghave b/tests/hghave
--- a/tests/hghave
+++ b/tests/hghave
@@ -10,7 +10,7 @@  import hghave
 checks = hghave.checks
 
 def list_features():
-    for name, feature in checks.iteritems():
+    for name, feature in sorted(checks.iteritems()):
         desc = feature[1]
         print name + ':', desc