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?

link|improve this question
Exact duplicate: stackoverflow.com/questions/4606470/… – Martin Geisler Dec 25 '11 at 22:18
feedback

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

Questions on Server Fault are expected to generally relate to servers, networking, or desktop infrastructure, within the scope defined in the faq.

1 Answer

Please try with

[hooks]
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.

link|improve this answer
feedback

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