fix an exception in gpg.py with multiples sigs for the same cset
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Wed, 01 Feb 2006 20:20:27 +0100
changeset 1682 ca1cda9220d5
parent 1681 98eef041f9c7
child 1683 063e04831a09
fix an exception in gpg.py with multiples sigs for the same cset - silly error, do not overwrite the variable we use for iterating - correct 'hg help sign'
hgext/gpg.py
--- a/hgext/gpg.py	Wed Feb 01 19:37:26 2006 +0100
+++ b/hgext/gpg.py	Wed Feb 01 20:20:27 2006 +0100
@@ -156,9 +156,9 @@
         revs[r].extend(keys)
     nodes = list(revs)
     nodes.reverse()
-    for r in nodes:
-        for k in revs[r]:
-            r = "%5d:%s" % (r, hgnode.hex(repo.changelog.node(r)))
+    for rev in nodes:
+        for k in revs[rev]:
+            r = "%5d:%s" % (rev, hgnode.hex(repo.changelog.node(rev)))
             ui.write("%-30s %s\n" % (keystr(ui, k), r))
 
 def check(ui, repo, rev):
@@ -262,7 +262,7 @@
           ('d', 'date', "", _("date code")),
           ('u', 'user', "", _("user")),
           ('k', 'key', "", _("the key id to sign with"))],
-         _("hg sign [OPTION]... REVISIONS")),
+         _("hg sign [OPTION]... [REVISION]...")),
     "sigcheck": (check, [], _('hg sigcheck REVISION')),
     "sigs": (sigs, [], _('hg sigs')),
 }