Closed Bug 1820756 Opened 1 year ago Closed 1 year ago

Add a hook that prevents pushing a commit to an unintended repo

Categories

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

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: pehrsons, Assigned: pehrsons)

References

Details

Attachments

(1 file, 1 obsolete file)

The idea is to be able to mark a commit with e.g. REPO-elm in the title and the push hook will then prevent this commit from being pushed to a repo other than elm.

This will help us when doing libwebrtc merges on elm, if during the process of applying an upstream commit we have to create a temporary commit (that shouldn't be pushed to central) to keep the tree building and to let the process continue. The proper fix is then developed either on elm or central after the initial merge process is done, and the temporary commit gets removed during a rebase onto latest central.

Depends on D172067

Attachment #9321994 - Attachment description: hooks: add testcases for repo locked commits (Bug 1820756) r?sheehan! → hooks: implement repo locked commits (Bug 1820756) r?sheehan!
Attachment #9321995 - Attachment is obsolete: true
Blocks: 1822196
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED

This is deployed.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: