I am using Mercurial SCM over a LAN using a normal shared folder instead of HTTP. I'm having a problem getting the auto update hook to run.

I have entered this hook as detailed in the FAQ. This installs the hook, but when I push something to the remote repository I get an error:

added 1 changesets with 1 changes to 1 files
running hook changegroup: hg update >&2
warning: changegroup hook exited with status -1

There is a similar Stack Overflow question, but it offers no solutions other than it may be a permissions error somewhere.

Has anyone else had this problem and can anyone else shed any more light on this or give me a heads up on where to start fixing this? Could it be a problem with server permissions?

closed as off topic by sysadmin1138 Dec 25 '11 at 0:58

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here. If this question can be reworded to fit the rules in the help center, please edit the question.


Please try with

changegroup = hg update --debug

instead. The redirection of errors might trip up something with certain old versions of Mercurial. Then also try pushing with

$ hg push --debug

to get all available output from Mercurial.

Not the answer you're looking for? Browse other questions tagged or ask your own question.