HomePhabricator

Treat commit hook execution in observed repositories as a no-op, not an error

Description

Treat commit hook execution in observed repositories as a no-op, not an error

Summary:
See PHI24. If you create a hosted Mercurial repository and switch it to observed, you can end up with a hook installed that runs on pulls and complains.

Instead, just bail out if we're running on a pull.

The corresponding Git hook doesn't run on pulls, so there's no issue in Git.

Test Plan: Executed the hook in an observed Mercurial repository, got a clean exit.

Reviewers: chad

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D18307

Details

Provenance
epriestleyAuthored on Jul 31 2017, 8:21 PM
epriestleyPushed on Aug 1 2017, 3:32 PM
Reviewer
chad
Differential Revision
D18307: Treat commit hook execution in observed repositories as a no-op, not an error
Parents
rP3f158aa71b14: More project v3 images
Branches
Unknown
Tags
Unknown
Build Status
Buildable 17864
Build 23994: Run Core Tests