[解决]Mercurial HTTP Error 500: Access is denied on 00changelog.i
Posted Samnew
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[解决]Mercurial HTTP Error 500: Access is denied on 00changelog.i相关的知识,希望对你有一定的参考价值。
总之,用户对仓库目录要有写权限
00changelog, access is denied, hg, http error 500, mercurial, permissions, push
Mercurial HTTP Error 500: Access is denied on 00changelog.i
Today I created a new Mercurial repository on a Windows server. I cloned it, made some changes, tried to push, and was greeted with this:
C:\myapplication>hg push
pushing to http://servername/myapplication
searching for changes
abort: HTTP Error 500: .hg\store0changelog.i: Access is denied
My user account had write permission to the myapplication folder on the server, and the odd thing is that I’ve created repositories there before and never had a problem pushing changes. I compared 00changelog.i to the same file in another repository that was working. Turns out I was using anonymous authentication and IUSR was missing write permission. I gave full control to IUSR on hg\store folder and…
C:\myapplication>hg push
pushing to http://servername/myapplication
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 114 changes to 114 files
Success!
If you’re having problems pushing to a central server with Mercurial, make sure the IIS anonymous authentication account (IUSR or IUSR_MachineName) you have write permission to the hg\store folder and subfolders in your repository.
以上是关于[解决]Mercurial HTTP Error 500: Access is denied on 00changelog.i的主要内容,如果未能解决你的问题,请参考以下文章
Mercurial hg 克隆错误 - “中止:错误:名称或服务未知”
如何解决 Mercurial (v1.0.2) 中的合并冲突?
使用 Apache 和 Windows 通过 HTTP 推送我的 Mercurial 存储库
无法通过 http 克隆 mercurial (hg) 存储库