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:


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

# if cmd is not provided it defaults to gpg
# key is optional and can be provided on the command line

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


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