I have some pretxncommit hooks in my local merc开发者_如何转开发urial repository, those hooks are used to check that the commit message includes a reference to a ticket and some other sanity checks.
I would like to execute command line application before each commit (push) to central repository. If application will execute with errors, commit should fail with some message.
What are all steps required to validate commit message with set of regular expressions? We want to work in semi-centralized set-up so I need a solution for the developer clone (local repository) and
I set up a http central Mercurial repository and try to send emails on every push. I follow instructions from mercurial page and from http://morecode.wordpress.com/2007/08/03/setting-up-mercurial-to-e
I could get it 开发者_StackOverfloweither with hg status --change $HG_NODE or with hg log -r $HG_NODE --style mycustomstyle
I\'ve written a generic changegroup hook function that I would 开发者_StackOverflow中文版like to customize for each repository by setting some hgrc section variables, like so:
I have a web server which is using mercurial as the repository.Every day, we have files being written by applicat开发者_如何学编程ions to our server and I want these to be reflected in the repository.
I have a pre-commit hook in my .hgrc file which checks if more than 5MB of files will be added to the repository. The hook is:
I’m trying to create a hook that blocks pushes to a remote repository if you are trying to push more than once branch.
I am not sure if this is possible currently but is it possible to specify a separate set of hooks for a user or group (groups from the ACL extension).