Differences between revisions 11 and 13 (spanning 2 versions)
Revision 11 as of 2009-08-14 23:11:51
Size: 1141
Editor: JonnyDee
Comment: Added a hint where to find an example for a Mercurial hook which enforces signed changsets.
Revision 13 as of 2012-10-30 08:51:36
Size: 1201
Comment: added link to CommitsigsExtension
Deletions are marked like this. Additions are marked like this.
Line 40: Line 40:


=== See also ===
* [[CommitsigsExtension]]

Line 41: Line 47:
CategoryExtension CategoryBundledExtension

GPG extension

This extension is currently being distributed along with Mercurial.

Author: Benoit Benissot

Overview

This extension allows for signing of Mercurial revisions, checking them or listing of signed changesets.

Configuration

Configure your .hgrc to enable the extension by adding following lines:

[extensions]
hgext.gpg=

Use the '[gpg]' stanza for optional configuration tweaks for the extension:

[gpg]
# if cmd is not provided it defaults to gpg
cmd=/path/to/gpg-command-to-use
# key is optional and can be provided on the command line
key=KEYID

Usage

Sign one or more revisions: hg sign [OPTION]... [REVISION]...

Check signed revision: hg sigcheck REVISION

List signed revisions: hg sigs

Use hg help for additional options.

If you want to make sure only signed changesets are pushed to a repository you could use CheckGpgSig hook which is part of HgHookLib project.

See also

* CommitsigsExtension


CategoryBundledExtension

GpgExtension (last edited 2013-09-03 03:39:42 by KevinBot)