Page MenuHomePhabricator

Support Mercurial pretxnchangegroup hooks
ClosedPublic

Authored by epriestley on Dec 2 2013, 11:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 12:39 AM
Unknown Object (File)
Tue, Dec 17, 10:47 PM
Unknown Object (File)
Fri, Dec 13, 7:53 PM
Unknown Object (File)
Fri, Dec 13, 12:28 PM
Unknown Object (File)
Sat, Dec 7, 8:27 PM
Unknown Object (File)
Sat, Dec 7, 11:04 AM
Unknown Object (File)
Wed, Nov 27, 3:32 PM
Unknown Object (File)
Wed, Nov 27, 1:24 AM
Subscribers

Details

Reviewers
btrahan
Maniphest Tasks
Restricted Maniphest Task
T4189: Install commit hooks in hosted repositories
Commits
Restricted Diffusion Commit
rPf93c6985ad84: Support Mercurial pretxnchangegroup hooks
Summary

Ref T4189. Fixes T2066. Mercurial has a lot of hooks so I'm not 100% sure this is all we need to install (we may need separate hooks for tags/bookmarks) but it should cover most of what we're after at least.

Test Plan
  • bin/repository pull'd a Mercurial repo and got a hook install.
  • Pushed to a Mercurial repository over SSH and HTTP, with good/bad hooks. Saw hooks fire.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
340

This is basically like "--bare" in Git, but should be much less problematic since the Mercurial bare and non-bare formats are almost identical. This is just a little cleaner/faster and saves a bit of disk space by not keeping a checked out working copy around when we don't actually need one.