gpg: use reverse kwarg to sort sigs in reversed order
authorMartin Geisler <mg@lazybytes.net>
Thu, 07 May 2009 01:33:45 +0200
changeset 8303 db52cc4f2f97
parent 8302 d2ad8c066676
child 8304 991ca609ccd6
gpg: use reverse kwarg to sort sigs in reversed order
hgext/gpg.py
--- a/hgext/gpg.py	Thu May 07 01:33:44 2009 +0200
+++ b/hgext/gpg.py	Thu May 07 01:33:45 2009 +0200
@@ -152,7 +152,7 @@
             continue
         revs.setdefault(r, [])
         revs[r].extend(keys)
-    for rev in reversed(sorted(revs)):
+    for rev in sorted(revs, reverse=True):
         for k in revs[rev]:
             r = "%5d:%s" % (rev, hgnode.hex(repo.changelog.node(rev)))
             ui.write("%-30s %s\n" % (keystr(ui, k), r))