[issue1938] Anything commited during preoutgoing hook is not reflected in pull

Eric Scouten bugs at mercurial.selenic.com
Mon Dec 7 00:09:22 UTC 2009


New submission from Eric Scouten <eric at scouten.com>:

I am experimenting with using hg to manage the content of a WordPress blog.
I want to be able to quickly download a snapshot of the site to my laptop to
do maintenance/design work on the site and thought I could use a preoutgoing
hook for this purpose.

When I do an hg pull from my laptop to the web server, the preoutgoing hook
does in fact get called on the server (as expected) and a changeset is
generated that reflects the latest snapshot of the SQL database and any
files uploaded to the site, but ... this changeset isn't included in the
pull, so the laptop is always (at least) one change behind the server.

I think I can accomplish what I want by using a pre-serve hook instead, but
that appears to create a wider window of opportunity for changes to get lost.

IMHO this is a bug since the hook is documented as running "before computing
changes to send from the local repository to another" and this behavior does
not match that description.

FWIW, I'm running hg 1.4.1 on all machines involved. Web server is on Python
2.4.4, laptop on 2.6.

----------
messages: 11172
nosy: scouten
priority: bug
status: unread
title: Anything commited during preoutgoing hook is not reflected in pull

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue1938>
____________________________________________________


More information about the Mercurial-devel mailing list