pull hook?
Matt Mackall
mpm at selenic.com
Sat May 2 21:40:09 UTC 2015
On Sat, 2015-05-02 at 13:37 +0200, Lasse Kliemann wrote:
> What can I do to have an action executed upon a pull before outgoing
> changesets are fixed?
Generally speaking, nothing. Consider Alice pulls from Bob's repo on
NFS. Alice doesn't run Bob's hooks.. because that's called "an arbitrary
code execution security hole". And Bob doesn't run Bob's hooks either..
because there's no mechanism for that.
But in configurations where hooks ARE honored, you can use the
preoutgoing hook.
If you're looking to make a Mercurial server cluster, you might want to
to look at this:
https://bitbucket.org/facebook/hgsql
It uses an SQL server to implement cross-server transactional locking
and replication (though storage is still done in the usual way).
Between this and remotefilelog, Facebook is very comfortably serving a
large number of developers on just a few servers.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list