0

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?

Gary Willoughby
  • 102
  • 2
  • 11

1 Answers1

0

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.

Martin Geisler
  • 1,271
  • 9
  • 23