1. Thejesh GN
  2. commitsigs

Commits

Martin Geisler  committed 91c6a98

Document hook.

  • Participants
  • Parent commits 1901657
  • Branches default
  • Tags 0.1

Comments (0)

Files changed (1)

File autosign.py

View file
     return retcode
 
 def hook(ui, repo, node, **kwargs):
+    """verify changeset signatures
+
+    This hook is suitable for use as a ``pretxnchangegroup`` hook. It
+    will verify that all pushed changesets carry a good signature. If
+    one or more changesets lack a good signature, the push is aborted.
+    """
     ctx = repo[node]
     if checksigs(ui, repo, "%s:" % node) > 0:
         raise error.Abort(_("could not verify all changeset"))