201 ('f', 'force', None, _('sign even if the sigfile is modified')), |
201 ('f', 'force', None, _('sign even if the sigfile is modified')), |
202 ('', 'no-commit', None, _('do not commit the sigfile after signing')), |
202 ('', 'no-commit', None, _('do not commit the sigfile after signing')), |
203 ('k', 'key', '', |
203 ('k', 'key', '', |
204 _('the key id to sign with'), _('ID')), |
204 _('the key id to sign with'), _('ID')), |
205 ('m', 'message', '', |
205 ('m', 'message', '', |
206 _('commit message'), _('TEXT')), |
206 _('use text as commit message'), _('TEXT')), |
207 ('e', 'edit', False, _('invoke editor on commit messages')), |
207 ('e', 'edit', False, _('invoke editor on commit messages')), |
208 ] + commands.commitopts2, |
208 ] + commands.commitopts2, |
209 _('hg sign [OPTION]... [REV]...')) |
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 |