comparison hgext/gpg.py @ 1682:ca1cda9220d5

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'
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Wed, 01 Feb 2006 20:20:27 +0100
parents 98eef041f9c7
children 60c3a55c61b8
comparison
equal deleted inserted replaced
1681:98eef041f9c7 1682:ca1cda9220d5
154 continue 154 continue
155 revs.setdefault(r, []) 155 revs.setdefault(r, [])
156 revs[r].extend(keys) 156 revs[r].extend(keys)
157 nodes = list(revs) 157 nodes = list(revs)
158 nodes.reverse() 158 nodes.reverse()
159 for r in nodes: 159 for rev in nodes:
160 for k in revs[r]: 160 for k in revs[rev]:
161 r = "%5d:%s" % (r, hgnode.hex(repo.changelog.node(r))) 161 r = "%5d:%s" % (rev, hgnode.hex(repo.changelog.node(rev)))
162 ui.write("%-30s %s\n" % (keystr(ui, k), r)) 162 ui.write("%-30s %s\n" % (keystr(ui, k), r))
163 163
164 def check(ui, repo, rev): 164 def check(ui, repo, rev):
165 """verify all the signatures there may be for a particular revision""" 165 """verify all the signatures there may be for a particular revision"""
166 mygpg = newgpg(ui) 166 mygpg = newgpg(ui)
260 ('', 'no-commit', None, _("do not commit the sigfile after signing")), 260 ('', 'no-commit', None, _("do not commit the sigfile after signing")),
261 ('m', 'message', "", _("commit message")), 261 ('m', 'message', "", _("commit message")),
262 ('d', 'date', "", _("date code")), 262 ('d', 'date', "", _("date code")),
263 ('u', 'user', "", _("user")), 263 ('u', 'user', "", _("user")),
264 ('k', 'key', "", _("the key id to sign with"))], 264 ('k', 'key', "", _("the key id to sign with"))],
265 _("hg sign [OPTION]... REVISIONS")), 265 _("hg sign [OPTION]... [REVISION]...")),
266 "sigcheck": (check, [], _('hg sigcheck REVISION')), 266 "sigcheck": (check, [], _('hg sigcheck REVISION')),
267 "sigs": (sigs, [], _('hg sigs')), 267 "sigs": (sigs, [], _('hg sigs')),
268 } 268 }
269 269