Permission denied: .hg\store\lock

Posted by harpo on Stack Overflow See other posts from Stack Overflow or by harpo
Published on 2010-06-09T18:10:51Z Indexed on 2010/06/09 18:12 UTC
Read the original article Hit count: 834

Filed under:
|

This smells like a serverfault question, yet there are many similar questions here. Your call.

I'm setting up Mercurial over IIS6, and thanks to a number of detailed blogs, it's working fine — almost.

I can browse and clone the repositories fine, but this is what happens when I try to push:

D:\sample2>hg push
pushing to http://localhost/hg/sample2
searching for changes
abort: HTTP Error 500: Permission denied: .hg\store\lock

First of all, there is no such file or folder. Second, the App Pool's logon has total permission on the repository's parent directory, with these inherited ad infinitum.

The repository is located on another logical drive (on the same machine), and if I push to it directly, that also works:

D:\sample2>hg push e:\hg\sample2
pushing to e:\hg\sample2
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files

If I change the password in my hgrc, the message indicates a failed authorization, so I believe that's working.

I've been fighting this for a couple of days, so any leads would be helpful. Thanks!

© Stack Overflow or respective owner

Related posts about iis6

Related posts about mercurial