Please enable single_head_per_branch.py hook on hg.m.o/extensions/chatzilla

RESOLVED FIXED

Status

Developer Services
General
RESOLVED FIXED
5 years ago
3 years ago

People

(Reporter: James Ross, Assigned: fubar)

Tracking

Details

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
Created attachment 772805 [details]
Mercurial Workbench showing the duplicate heads

Callek (Justin Wood) managed to push a new 'default' head to the ChatZilla repository recently (ba3f1807763a). Although the webgraph (http://hg.mozilla.org/chatzilla/graph) doesn't label them both, if you use Mercurial Workbench or, hopefully, the command-line tools, they'll show that both ba3f1807763a and f89c876daa94 are heads for the 'default' branch. Which is bad!
(Reporter)

Updated

5 years ago
Assignee: server-ops-webops → bugspam.Callek
Releng is now owning hooks, which means that this falls under our purview anyway. I still intend to check this out before circling back with IT over what hooks are installed here....
Component: WebOps: Source Control → Release Engineering: Repos_and_Hooks
Product: Infrastructure & Operations → mozilla.org
QA Contact: nmaul
The hook that should prevent this is:
http://hg.mozilla.org/hgcustom/hghooks/file/2ce2c5286ed6/mozhghooks/single_head_per_branch.py

I'm not sure that that is globally enabled though (probably isn't, because of Try), so maybe you just don't have that in the Chatzilla repo?
Product: mozilla.org → Release Engineering
Hey Ben, Kilby can one of you please tell me what hooks are enabled on the cZ repo?
Flags: needinfo?(klibby)
Flags: needinfo?(bkero)
(Assignee)

Comment 4

4 years ago
Only the system-wide pushlog hook. (Kilby? Really? ;-))
Flags: needinfo?(klibby)
Flags: needinfo?(bkero)
                    ......                      
                 .:||||||||:.)                
                /         O  \                 
               (      O       |                 
-------@@@@----------:  :----------@@@@---------
                     `--'                       
                                                
                                               
         K I L B Y   W A S   H E R E

Updated

4 years ago
Assignee: bugspam.Callek → server-ops-webops
Component: Repos and Hooks → WebOps: Source Control
Product: Release Engineering → Infrastructure & Operations
QA Contact: nmaul
Summary: Callek managed to push an extra 'default' head to hg.mozilla.org/chatzilla → Please enable single_head_per_branch.py hook on hg.m.o/extensions/chatzilla
(Assignee)

Comment 6

4 years ago
hgssh1.dmz.scl3# cat chatzilla/.hg/hgrc 
[web]
description = ChatZilla, the Mozilla IRC client.

[hooks]
pretxnchangegroup.b_singlehead = python:mozhghooks.single_head_per_branch.hook
Assignee: server-ops-webops → klibby
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Component: WebOps: Source Control → General
Product: Infrastructure & Operations → Developer Services
You need to log in before you can comment on or make changes to this bug.