Closed Bug 1190005 Opened 10 years ago Closed 10 years ago

Replace /repo/hg/scripts/hg_require_single_head references with single_head_per_branch Python hook

Categories

(Developer Services :: Mercurial: hg.mozilla.org, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gps, Assigned: gps)

Details

As part of standing up a fresh server, I discovered a reference to a shell hook at /repo/hg/scripts/hg_require_single_head. This file isn't being installed by the new Ansible config and nor should it be. The contents of the file on hgssh say it is deprecated. Besides, we should be using Python hooks for everything. So far I've only seen this on build/tools. I'm going to manually update all references to point to the nearly equivalent single_head_per_branch Python hook. I say "nearly" because this shell hook appears to actually be enforcing one head period. single_head_per_branch is good enough for other repos. I argue it is good enough for build/tools as well.
The old hook is also referenced by: * build/buildbot * build/fork-hg-git * schema-validation * SeaMonkey/tools * tamarin-redux I'm going to change these references as well.
Summary: build/tools using old single head hook → Replace /repo/hg/scripts/hg_require_single_head references with single_head_per_branch Python hook
In the case of build/buildbot, the hook is commented out: #Commented out for Bug 617041 #pretxnchangegroup.a_singlehead = /repo/hg/scripts/hg_require_single_head I'm just going to remove those lines.
This is done. I also synced the hgrc files to hgweb machines for impacted repos.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.