Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 748055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:16:33+00:00 2026-05-14T14:16:33+00:00

I know how to configure the Mercurial signing extension . The problem that I’m

  • 0

I know how to configure the Mercurial signing extension. The problem that I’m having is that I don’t want to sign each individual change set, I only want to sign revisions that introduce new version tags.

That’s easily accomplished locally, however I can’t come up with a way to enforce this on the remote server. I’d like people to continue to be able to push their changes as normal, unless adding a release tag, which should be accompanied by a signature.

The end result should be that anyone cloning our repository can easily see a list of signed revisions, which point to a list of signed releases.

Hopefully, I’ve just missed something obvious in hooklib. Has anyone else accomplished this, if so, how?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T14:16:34+00:00Added an answer on May 14, 2026 at 2:16 pm

    You could do it on the server with a pretxnchangegroup hook. More efficient in-process in python, but off the top of my head in shell you’d do:

    In your hgrc:

    [hook]
    pretxnchangegroup = all-tags-checked.sh
    

    and in all-tags-checked.sh:

    for therev in $(seq $(hg id -n -r $HG_NODE) $(hd id -n -r tip)) ; do
       if hg log --template '{files}' -r $therev | grep --quiet '^.hgtags' ; then
          if hg sigcheck $therev | grep --quiet '^No valid' ; then
             exit 1
          fi
       fi
    done
    

    That goes through every new changeset and checks to make sure that if it edits .hgtags (add a tag) then it must also be signed.

    Is that what you’re looking for?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a little problem with autoconf, I know that you can use configure.ac
I'm using Tomcat 6.0, and I want to know how can I configure Tomcat's
I want to know how to configure your environment to execute some command with
Please i want to know how to configure the SMTP for Swiftmailer in Symfony2.
I'm running into a paradigm problem here. I don't know whether I should store
I can't find javadoc for Hessian lib. I want to know how to configure
I'm having the problem that the maximum pool size of a SingleThreadModel servlet is
Does anyone know how to configure svn so that every file committed is run
Does anyone know how to configure XCode so that the Destination drop down under
I am working on jsp. I have eclipse but don't know how to configure

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.