Mercurial hook - hg update

Mohammed, Khursheed khursheed.mohammed at intel.com
Wed Jul 29 18:19:34 CDT 2009


Hi

I'm trying to make a hook to run when a "push" operation takes place.

I have the .hg\hgrc file as below:
------------------------------------------------------------------
[web]
description = SSD_Test
accesslog = D:/wwwroot_virtual/hgweb/logs/SSD/Test.access.log
errorlog = D:/wwwroot_virtual/hgweb/logs/SSD/Test.error.log
allow_archive = bz2, gz, zip
allowpull = True
push_ssl = false
allow_push = *

[hooks]
changegroup = hg update
------------------------------------------------------------------

I get the below error "warning: changegroup hook exited with status -1". Not sure what the error means?
I can run the "hg update" inside the repository without any errors. And I have the admin rights to the machine and the repository.

Error while push operation
------------------------------------------------------------------
C:\temp\hgrepos\NP\Test1>hg push
http authorization required
realm: Software Central
user: kmohamme
password:
pushing to https://dvcs-np.intel.com/hgwebdir.cgi/Test1/
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files
warning: changegroup hook exited with status -1
------------------------------------------------------------------

Any one has similar issues?

Thanks
Khursheed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20090729/5be3d7f5/attachment.htm 


More information about the Mercurial mailing list