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'
--- 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')),
}