mercurial-hook Questions

1

We are using pretxncommit hook for HG to run a quick static analysis check on code commited. However the hook is triggered on applying any changes to commit tree - which includes rebasing and using...
Borneol asked 23/7, 2018 at 8:49

3

I am trying to create a mercurial pre-commit hook that runs pylint on the pre-commit. My project uses a virtual environment. I have the hook set up to call pylint on the changed files but I get th...
Rivulet asked 18/10, 2019 at 13:36

4

Solved

What are some useful Mercurial hooks that you have come across? A few example hooks are located in the Mercurial book: acl bugzilla notify check for whitespace I personally don't find t...
Straw asked 10/11, 2009 at 6:5

9

Solved

This should be a very simple thing to have run, but for some reason it won't work with my Mercurial repository. All I want is for the remote repo to automatically run hg update whenever someone pus...
Dyaus asked 11/5, 2009 at 15:25

3

Solved

Is there a way to specify a hook in the single repository? Now we have specified the hook in the "/etc/mercurial/hgrc" file, but every time it builds twice, and it builds for each commit in each r...
Krystin asked 10/10, 2013 at 14:50

3

Solved

Is it possible to temporarily disable a hook when running a mercurial command? e.g., something like: hg push --no-hook
Shardashare asked 14/2, 2013 at 23:45

3

Solved

How can I setup a pre-commit hook , that will search for a string in the committed files and If found stop the commit ?
Schoolboy asked 12/11, 2010 at 7:12

2

Edit Made this basic hook to prevent branch name & commit message bugID mismatches. https://gist.github.com/2583189 So basically the idea is that the hook should append " BugID:xyz" to the end...
Jacinto asked 29/4, 2012 at 23:47

3

I have in some cases a need to enforce that Mercurial-users have run hg pull -u before any hg commit can be allowed, i.e., hg pull will mean that the incoming queue is empty — and furthermore I als...
Lema asked 16/4, 2012 at 13:57

2

Solved

We've built a changeset propagation mechanism, but it relies on bundling and unbundling the new changesets. If we were to use the changegroup hook, then it would cause cyclic behaviors, because the...
Voidance asked 18/1, 2012 at 23:3

1

Solved

What is the correct way of running hg update in an incoming hook? Is it: [hooks] incoming.foo = hg update Or this Or is there a more elegant way of doing this?
Celestyn asked 24/4, 2012 at 6:40

2

Solved

Iam using win xp with Tortoisehg 2.3. I use bit bucket to backup my personal source code. (rarely for true version control, more as a source backup store). Right now I have to right click on my rep...

2

Solved

I'm in the process of writing a mercurial changegroup hook. I don't have everything figured out yet, but the process of trial and error is made more painful by the fact that I have to keep committi...
Musk asked 6/3, 2012 at 18:47

1

Solved

I know how to specify which hooks are run when. What I want to know is if it is possible to pass config into the hook via the hgrc file. Extensions can do this, e.g. [extensions] someextension = s...
Karlsbad asked 5/3, 2012 at 10:52

3

we are working with mercurial and now we would like to introduce precommit hooks to keep the code clean. We would like everyone to somehow get the hooks, but we would also like to be able to update...
Extragalactic asked 8/2, 2011 at 13:9

2

Solved

I have Mercurial hgweb set up on Windows 2008 64 bit and IIS. The location of the repositories is a network share. I want to create a hook on the repository to issue an "hg update" command on a ch...
Vickery asked 23/1, 2012 at 13:31

2

Solved

I want to have a Mercurial hook that will run before committing a transaction that will abort the transaction if a binary file being committed is greater than 1 megabyte. I found the following code...
Germanophile asked 31/3, 2010 at 9:24

4

Solved

I have a need for a hook to run after update (this will build the solution they have updated) and I don't want to have to add that hook manually for each person that clones my central repository. ...
Laureate asked 18/9, 2011 at 14:34

2

The title says it: I am looking for the variable names (HG_*) so I can make use of them in my hook script..
Koheleth asked 7/2, 2011 at 19:53

1

Solved

Is there an existing hook in Mercurial which, like changegroup, allows actions to take place on a push, but allows me to do multiple actions (or vary them) based on which branches are affected by t...
Beach asked 22/1, 2011 at 0:11

3

Solved

I am using TortoiseHg and would like to apply a hook to my repo. My repo's .hg/hgrc file is as follows: [hooks] pretxncommit = python:hg_checksize.newbinsize The thing is that I don't know where...
Whistle asked 20/3, 2010 at 8:26
1

© 2022 - 2024 — McMap. All rights reserved.