Move pushlog back from changegroup to pretxnchangegroup hook?

RESOLVED WONTFIX

Status

RESOLVED WONTFIX
9 years ago
4 years ago

People

(Reporter: axel, Unassigned)

Tracking

Details

(Reporter)

Description

9 years ago
I was wondering if we can move pushlog back to the pretxn hook, like this:

Enable the single-head hook in the global hgrc before the pushlog hook, and make it check a setting in the repo on whether it is actually supposed to guard, same for tree status.

Could be something like

[mozhooks]
single-head=1
tree-status=1

in the local .hg/hgrcs for the repos where we want them.

The fact that we already seen tickets to get manual clean up on our pushlog dbs concerns me a good deal, and this should enable us to work around that.
This is more of a Server Ops bug than Hg: Customization, since nobody but IT can fiddle with the hg setup on hg.mo.
(Reporter)

Comment 2

9 years ago
We would need to patch the hooks first, though.
Product: mozilla.org → Release Engineering
pretxnchangegroup is the proper place for the hook. The bug that needs fixed is to have the pushlog roll back if the transaction is aborted.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → WONTFIX
Product: Release Engineering → Developer Services
You need to log in before you can comment on or make changes to this bug.