Differences between revisions 13 and 17 (spanning 4 versions)
Revision 13 as of 2012-10-30 08:51:36
Size: 1201
Comment: added link to CommitsigsExtension
Revision 17 as of 2013-08-26 15:39:53
Size: 1249
Editor: alex hunsley
Comment: Vandalism
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== GPG extension == #pragma section-numbers 2
= GPG extension =
Line 6: Line 7:
=== Overview === <<TableOfContents>>

== Overview ==
Line 9: Line 12:
=== Configuration ===
Configure your .hgrc to enable the extension by adding following lines:
== Configuration ==
Configure your ''`.hgrc`'' to enable the extension by adding following lines:
Line 17: Line 20:
Use the '[gpg]' stanza for optional configuration tweaks for the extension: Use the `[gpg]` stanza for optional configuration tweaks for the extension:
Line 26: Line 29:
=== Usage === == Usage ==
Line 37: Line 40:
Use {{{hg help}}} for additional options. Use `hg help` for additional options.
Line 39: Line 42:
If you want to make sure only signed changesets are pushed to a repository you could use [[http://code.google.com/p/hghooklib/wiki/CheckGpgSig|CheckGpgSig]] hook which is part of [[http://code.google.com/p/hghooklib|HgHookLib]] project. (!) If you want to make sure only signed changesets are pushed to a repository, you could use the [[http://code.google.com/p/hghooklib/wiki/CheckGpgSig|CheckGpgSig]] hook which is part of [[http://code.google.com/p/hghooklib|HgHookLib]] project.
Line 41: Line 44:

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

GPG extension

This extension is currently being distributed along with Mercurial.

Author: Benoit Benissot

1. Overview

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

2. 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

3. 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 the CheckGpgSig hook which is part of HgHookLib project.

4. See also


CategoryBundledExtension

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