Mercurial > public > mercurial-scm > hg
diff hgext/gpg.py @ 5147:c80af96943aa
refactor options from cmdtable
- add extracommitopts for user and date
- factor stuff
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Wed, 08 Aug 2007 12:27:20 +0200 |
parents | 30847b8af7ca |
children | 3aa5c45874c6 |
line wrap: on
line diff
--- a/hgext/gpg.py Tue Aug 07 15:57:23 2007 +0200 +++ b/hgext/gpg.py Wed Aug 08 12:27:20 2007 +0200 @@ -6,7 +6,7 @@ # of the GNU General Public License, incorporated herein by reference. import os, tempfile, binascii -from mercurial import util +from mercurial import util, commands from mercurial import node as hgnode from mercurial.i18n import _ @@ -269,10 +269,9 @@ [('l', 'local', None, _('make the signature local')), ('f', 'force', None, _('sign even if the sigfile is modified')), ('', 'no-commit', None, _('do not commit the sigfile after signing')), + ('k', 'key', '', _('the key id to sign with')), ('m', 'message', '', _('commit message')), - ('d', 'date', '', _('date code')), - ('u', 'user', '', _('user')), - ('k', 'key', '', _('the key id to sign with'))], + ] + commands.commitopts2, _('hg sign [OPTION]... [REVISION]...')), "sigcheck": (check, [], _('hg sigcheck REVISION')), "sigs": (sigs, [], _('hg sigs')),