使用 MacHG 我收到此消息:
“Mercurial 报告错误号 255:中止:资源繁忙”
我试图通过本地网络将更改从我的 Mac 推送到 SMB 安装的共享目录。今天早些时候,它可以进行 2 次推送和一次克隆。
我已阅读所有有关锁定文件和符号链接的论坛,并且 SMB 支持符号链接以使文件锁定发挥作用。
此外,没有 .hg/store/lock 或 .hg/wlock 文件可供我删除以解决锁定情况。
编辑:尝试使用 CIFS 作为挂载共享的协议后,CIFS 现在会报告相同的问题/错误消息...
Using MacHG I get this message:
"Mercurial reported error number 255:abort: Resource busy"
I'm trying to push changes across a local network from my mac to a SMB mounted shared directory. It was working earlier today for 2 pushes and a clone.
I have read all the forums about lock files and symlinks and that SMB supports symlinks for the file locking to work.
Also there are no .hg/store/lock or .hg/wlock files for me to delete to resolve the locking scenario.
EDIT: After trying CIFS as the protocol for mounting the share it would appear CIFS is now reporting the same issue/error message...
发布评论
评论(1)
重复以下测试后:
似乎唯一一致的解决方案是不映射到网络共享文件夹...
http://hginit.com/02.html
上面的链接是实现简单 Intranet 共享的一个非常好的指南。
您需要编辑
.hg/hgrc
文件,使其包含以下几行:然后,在我们的情况下,我们为服务器启动时创建了一个启动脚本(在本例中为 Windows 的批处理文件)确保它执行了以下操作:
如果您需要安全连接和身份验证,请访问 Mercurial wiki 或搜索 SO 了解有关设置 hgserve 的更多详细信息
https://www.mercurial-scm.org/wiki/hgserve
After repeating tests of:
It would seem the only solution that was consistent is to NOT map to a networked share folder...
http://hginit.com/02.html
The above link is a really great guide on getting a simple intranet share happening.
You'll need to edit the
.hg/hgrc
file so that it includes the following lines:Then in our situation we created a startup script (batch file for windows in our case) for when the server turned on to make sure it performed the following:
Visit the mercurial wiki or search SO for more details on setting up hg serve if you requre secure connections and authentication
https://www.mercurial-scm.org/wiki/hgserve