comparison hgext/gpg.py @ 16991:1aae34f109fd

consistency: use REV instead of REVISION
author Thomas Arendsen Hein <thomas@intevation.de>
date Wed, 20 Jun 2012 16:49:04 +0200
parents 7922004a46b8
children 8b312c080adb
comparison
equal deleted inserted replaced
16990:1dbe8a2b1b96 16991:1aae34f109fd
162 for rev in sorted(revs, reverse=True): 162 for rev in sorted(revs, reverse=True):
163 for k in revs[rev]: 163 for k in revs[rev]:
164 r = "%5d:%s" % (rev, hgnode.hex(repo.changelog.node(rev))) 164 r = "%5d:%s" % (rev, hgnode.hex(repo.changelog.node(rev)))
165 ui.write("%-30s %s\n" % (keystr(ui, k), r)) 165 ui.write("%-30s %s\n" % (keystr(ui, k), r))
166 166
167 @command("sigcheck", [], _('hg sigcheck REVISION')) 167 @command("sigcheck", [], _('hg sigcheck REV'))
168 def check(ui, repo, rev): 168 def check(ui, repo, rev):
169 """verify all the signatures there may be for a particular revision""" 169 """verify all the signatures there may be for a particular revision"""
170 mygpg = newgpg(ui) 170 mygpg = newgpg(ui)
171 rev = repo.lookup(rev) 171 rev = repo.lookup(rev)
172 hexrev = hgnode.hex(rev) 172 hexrev = hgnode.hex(rev)
204 ('k', 'key', '', 204 ('k', 'key', '',
205 _('the key id to sign with'), _('ID')), 205 _('the key id to sign with'), _('ID')),
206 ('m', 'message', '', 206 ('m', 'message', '',
207 _('commit message'), _('TEXT')), 207 _('commit message'), _('TEXT')),
208 ] + commands.commitopts2, 208 ] + commands.commitopts2,
209 _('hg sign [OPTION]... [REVISION]...')) 209 _('hg sign [OPTION]... [REV]...'))
210 def sign(ui, repo, *revs, **opts): 210 def sign(ui, repo, *revs, **opts):
211 """add a signature for the current or given revision 211 """add a signature for the current or given revision
212 212
213 If no revision is given, the parent of the working directory is used, 213 If no revision is given, the parent of the working directory is used,
214 or tip if no revision is checked out. 214 or tip if no revision is checked out.