Size: 715
Comment: Add gpg extension page
|
Size: 1249
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 4: | Line 5: |
=== Overview === This extension allows to sign mercurial revisions, checking them or list the signed changesets. |
''Author: Benoit Benissot'' |
Line 7: | Line 7: |
=== Configuration === Configure your .hgrc to enable the extension by adding following lines: |
<<TableOfContents>> == Overview == This extension allows for signing of Mercurial revisions, checking them or listing of signed [[ChangeSet|changesets]]. == Configuration == Configure your ''`.hgrc`'' to enable the extension by adding following lines: |
Line 12: | Line 17: |
fetch= | hgext.gpg= |
Line 15: | Line 20: |
Use the '[gpg]' stanza for additional configuration of the extension: | Use the `[gpg]` stanza for optional configuration tweaks for the extension: |
Line 18: | Line 23: |
# if cmd is not provided it defaults to gpg | |
Line 19: | Line 25: |
key=/path/to/key | # key is optional and can be provided on the command line key=KEYID |
Line 22: | Line 29: |
=== Usage === | == Usage == |
Line 33: | Line 40: |
Use {{{hg help}}} for additional options. | Use `hg help` for additional options. (!) 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. == See also == * [[CommitsigsExtension]] ---- CategoryBundledExtension |
GPG extension
This extension is currently being distributed along with Mercurial.
Author: Benoit Benissot
Contents
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.