Differences between revisions 9 and 12 (spanning 3 versions)
Revision 9 as of 2008-04-02 22:31:06
Size: 902
Editor: abuehl
Comment: mercurial -> Mercurial
Revision 12 as of 2010-08-28 15:08:55
Size: 1148
Editor: abuehl
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
This extension allows for signing of Mercurial revisions, checking them or listing of signed [:ChangeSet:changesets]. This extension allows for signing of Mercurial revisions, checking them or listing of signed [[ChangeSet|changesets]].
Line 39: Line 39:
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.
Line 40: Line 41:
CategoryExtension CategoryBundledExtension

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


CategoryBundledExtension

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