Questions tagged [mercurial-hook]

Mercurial hook is a mechanism to customize and extend functionalities of the Mercurial DVCS.

What it is?

Mercurial hook is a mechanism to customize and extend functionalities of the Mercurial DVCS.

Related tags

  • For more specific questions, this tag can be used in conjunction with and which are independent of the software configuration management system that is used.

See also

185 questions
0
votes
1 answer

Disallow hg push -f - but allow hg pull creating new head

As a followup for Mercurial: enforce "hg pull -u" before "hg commit" I have started to use a hook [hooks] pretxnchangegroup.forbid_2heads = /usr/local/bin/forbid_2head.sh where forbid_2head.sh looks like this #!/bin/bash BRANCH=`hg…
Peter Toft
  • 565
  • 7
  • 19
0
votes
1 answer

Adjusting mercurial notify extension to send notification due to a certain string in the commit message?

I need to send notifications to certain email due to a certain string in the commit message in the mercurial repository. I have now the notify extension working but it sends notifications at every push. thanx in advance.
0
votes
2 answers

mercurial update hook gives me permission denied error

I am using SSH to push to the central mercurial repository on the remote server. I put in a hook so the remote repo will update: [hooks] changegroup = hg update >&2 when I try to push to the remote repo, the push succeeds, but I get this…
esther h
  • 1,468
  • 2
  • 17
  • 35
0
votes
2 answers

Mercurial precommit script to change a file

Despite the decentralized nature of Mercurial, we have a centralized server that we all push to and that does nightly builds, packaging, etc... Here's what we want to achieve: One of the files that is source controlled contains the major+minor…
Rok
  • 1,482
  • 3
  • 18
  • 37
-1
votes
2 answers

Mercurial: how to modify changegroup in [pretxn]changegroup hook

I'm trying to create a Mercurial repository with a changegroup or pretxnchangegroup hook that inspects the commit, possibly makes some changes to it, then commits the changes. My hook does something similar to this: #!/bin/sh if ! grep -q foobar…
Scott Duckworth
  • 627
  • 4
  • 13
1 2 3
12
13