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.
if checksigs(ui, repo, "%s:" % node) > 0:
raise error.Abort(_("could not verify all changeset"))