Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

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

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

Questions on Server Fault are expected to relate to professional 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.

1 Answer

up vote 0 down vote accepted

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.

share|improve this answer
add comment

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