Closed Bug 574662 Opened 15 years ago Closed 11 years ago

Move pushlog back from changegroup to pretxnchangegroup hook?

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: axel, Unassigned)

Details

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.
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
Closed: 11 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.