[PATCH 2 of 3] contrib/gpg: rename sigcheck function

Yuya Nishihara yuya at tcha.org
Sat Nov 28 07:59:59 CST 2015


On Wed, 25 Nov 2015 00:31:39 -0600, timeless wrote:
> # HG changeset patch
> # User timeless <timeless at mozdev.org>
> # Date 1448431854 0
> #      Wed Nov 25 06:10:54 2015 +0000
> # Node ID a6abc5a4a6f757cca55f6db68520f934e0fa4057
> # Parent  3959884258260babbfe1adc4020665dee12b0703
> contrib/gpg: rename sigcheck function
> 
> I see no reason for the function not to be sigcheck ...
> 
> diff --git a/hgext/gpg.py b/hgext/gpg.py
> --- a/hgext/gpg.py
> +++ b/hgext/gpg.py
> @@ -167,8 +167,11 @@
>              r = "%5d:%s" % (rev, hgnode.hex(repo.changelog.node(rev)))
>              ui.write("%-30s %s\n" % (keystr(ui, k), r))
>  
> +def check(ui, repo, rev):
> +    sigcheck(ui, repo, rev)
> +

and no reason to keep check() ?
Removed it and pushed this to the clowncopter, thanks.

>  @command("sigcheck", [], _('hg sigcheck REV'))
> -def check(ui, repo, rev):
> +def sigcheck(ui, repo, rev):


More information about the Mercurial-devel mailing list