views:

91

answers:

2

Hi,

I've spent some time converting my SVN repository to Mercurial. I've setup Mercurial under IIS7 on Win 2008 R2.

I have nearly everything working. However I can not push changes back to server.

$ hg push
http authorization required
realm: pandora
user: rich
password: 
pushing to https://pandora/dev/test
searching for changes
abort: HTTP Error 500: .hg\store\00changelog.i: Access is denied

My hgweb.cgi looks like this:

[web]
baseurl = /hg
allow_push = *

[trusted]
users = *

Can anyone tell me why this doesn't work?

Cheers Rich

A: 

Try pushing to:

https://<username>:<password>@pandora/dev/test
Zor
that gives me 'abort: HTTP Error 404: Not Found'
Rich
My bad, edited.
Zor
+1  A: 

Ok turns out this is a permission problem.

You need to ensure the location of the repository has gives the SERVER/User write permission. Once changed everything worked.

Rich