pull hook?
Lasse Kliemann
lasse at lassekliemann.de
Sun May 3 18:43:53 UTC 2015
Lasse Kliemann <lasse at lassekliemann.de> writes:
> Matt Mackall <mpm at selenic.com> writes:
>> 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?
[...]
>> But in configurations where hooks ARE honored, you can use the
>> preoutgoing hook.
> Problem with that is that it is only triggered when the repos itself has
> outgoing changesets. If, say, the user pulls from B and B does not have
> any new changesets for the user, no pull from A is made. So anything new
> in A is ignored for the time being.
Sorry if this looks really stupid now.
I've tried some of the other hooks and found that for example
prelistkeys is triggered even on an "empty" pull. I do not feel too
comfortable with this kind of "abuse", however. (I guess this hook is
intended for something different.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20150503/7627a9f3/attachment.asc>
More information about the Mercurial
mailing list