0
votes
0answers
54 views

Change a commit message when amending a commit

Is there anyway i can change a commit message trough a hook when someone amends the commit message ? I tried to use precommit hook but this hook isn't called when amending. I also tried to call hg ...
0
votes
2answers
20 views

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 ...
0
votes
0answers
16 views

How can I block merges to the default branch from being pushed to my Mercurial blessed repo?

So, I am using Perfarce which imports Perforce's changelists into the default branch of a Mercurial repository. So far so good, but, if someone merges to that default branch, we are all effed. ...
0
votes
1answer
32 views

Mercurial pre commit hook to modify settings

I'm trying to setup my web-app (browser extension) so that I can seamlessly move between development, test and production. For the most part I've avoided hardcoding any URLs into the app, but there ...
0
votes
0answers
38 views

.hg/hgrc add to repository [duplicate]

I have this code in my hgrc file located into my .hg folder of repo: [hooks] precommit = ./VersionSettor.pl VersionSettor.pl script also located in .hg folder and intended for changing once file ...
0
votes
0answers
22 views

Configuring Mercurial ACLs under Windows/hgweb

I have Mercurial 2.3.1 set up under Windows/hgweb.cgi and serving up repos under IIS 7.0/https to authenticated network users. I'm trying to set up ACLs to limit pushes to certain files/dirs on the ...
2
votes
1answer
215 views

Mercurial hook to set policy on tag names

I write (in-process) hook to prevent add BAD tag name locally: .hg/hgrc: pretag.badtagname = python:.hg/hgcheck.py:localbadtag .hg/hgcheck.py: goodtag_re = r'(ver-\d+\.\d+\.\d+|tip)$' def ...
0
votes
1answer
41 views

Mercurial: create local copy of a remote repository at the remote respository

I use Mercurial on desktops, and then push local repositories to a centralized server. I noticed that this remote server does not hold local copies of files in its repositories (the directory is ...
1
vote
1answer
49 views

Mercurial: how to add a hook on pull

I've searched awhile for this and haven't seen anything. Which could mean, it's not supposed to be done or it just can't be done. I looked at a list of hooks for mercurial and I could not seem to ...
2
votes
2answers
244 views

Using a Django model from a mercurial python hook

I'm trying to queue up some build requests in a DB during a changegroup hook. The DB table is managed by a Django app. So, in the hook, I want to use the Django model to submit the build request. ...
2
votes
1answer
58 views

hgweb alternatives to allow_push

I've got Mercurial running on IIS7 fine. One thing that is frustrating is that allow_push will only take a list of usernames rather than a group. To that end, I was wondering if it'd be possible to ...
1
vote
1answer
162 views

hg commands in powershell hook from tortoisehg

I created a powershell script to run as a commit hook to write the username to a file. The command I am using in powershell to extract the username is: $repodir = ...
0
votes
1answer
208 views

Mercurial Commit Hook with Python main function

I'm trying to create a complex mercurial commit hook in python. I want to also be allowed to pass parameters using OptionParser. Here is the gist of what I have so far: .hg/hgrc config: [hooks] ...
2
votes
1answer
53 views

How to run mercurial changegroup hook only after a rebase?

We have a simple mercurial hook that runs every time we pull remote changes. We use changegroup hook. Our hook rebuilds some dlls and copy them to a folder. We automatically rebase when we do a ...
0
votes
1answer
29 views

Prevent retroactive modification of database migrations between mercurial branches

Is it possible to prevent someone from pushing commit which touches already applied (committed to separate branch) database migrations? For example, in default branch there are existing migrations 01 ...

1 2 3 4 5
15 30 50 per page