Commiting to hg repos with commit scripts using hgwebdir.cgi

Matt Mackall mpm at selenic.com
Mon Mar 24 11:22:23 CDT 2008


On Mon, 2008-03-24 at 23:39 +1100, Tim Groeneveld wrote:
> On Monday 24 March 2008 11:29:43 pm Giorgos Keramidas wrote:
> > Can you try pushing with:
> >
> >     hg --debug push /repository
> >
> > This should help tracking down what's going over the wire :)
>
> 
> pushing to http://127.0.0.1/hg/commitTest/
> sending capabilities command
> capabilities: lookup changegroupsubset unbundle=HG10GZ,HG10BZ,HG10UN
> sending heads command
> searching for changes
> common changesets up to 18806288c317 8fab2a0347c9
> 1 changesets found
> List of changesets:
> 5f457c96c3261de82e7dab2ea81d69521915c891
> sending unbundle command
> sending X bytes
> http authorization required
> realm: Hg repository
> user: tim
> password:
> abort: 'http://127.0.0.1/hg/commitTest/' does not appear to be an hg 
> repository!

Can you confirm that disabling the hook removes the problem? The other
thing that could be happening here is that you're getting a CGI
traceback. Turning off the cgitb bits in the .cgi file might be helpful
- then you'll hopefully get the traceback in your server logs instead.

Also, you might try running a push on the server to narrow down the
problem. If your hook is still generating output or some other problem
is occurring, you'll be able to see it.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial mailing list