你能“推”吗?在 64 位 Windows 7 上使用 Mercurial 进行网络共享?

发布于 2024-09-09 07:35:40 字数 505 浏览 6 评论 0原文

我们正在从 Windows XP x86 升级到 Windows 7 x64,我正在测试当前工作流程的兼容性问题。

目前,我们将中央 Mercurial 存储库存储在网络共享上,将副本克隆到我们的工作站,并将更改推送回基于网络的存储库。这在 WinXP 中完美运行,但在 Win7 中,我在推送回网络共享时始终收到错误消息:

推送到 t:\datamgt\automat\Kevin\SampleRepo 寻找改变 [错误 32] 该进程无法访问该文件,因为该文件正在被另一个进程使用:“T:\datamgt\automat\Kevin\SampleRepo\.hg\journal.dirstate”

我正在使用 TortoiseHG 1.1.1 和 Mercurial 1.6。 1023.

我已经能够推送到存储在同一工作站上的存储库,但不能推送到网络共享存储库。如果可能的话,我们宁愿不去基于网络服务器的存储库 - 将新软件添加到我们的服务器是一场艰苦的战斗。

We are in the process of upgrading from Windows XP x86 to Windows 7 x64, and I'm testing for compatibility problems with our current workflow.

Currently, we store central Mercurial repositories on a network share, clone copies to our workstations, and push our changes back to the network-based repositories. This works perfectly in WinXP, but in Win7 I consistently get an error message when pushing back to the network share:

pushing to t:\datamgt\automat\Kevin\SampleRepo
searching for changes
[Error 32] The process cannot access the file because it is being used by another process: 'T:\datamgt\automat\Kevin\SampleRepo\.hg\journal.dirstate'

I'm using TortoiseHG 1.1.1 and Mercurial 1.6.1023.

I've been able to push to repositories stored on the same workstation, but not to the network share repo. If possible, we'd prefer not to go to a webserver-based repository - it's an up-hill fight to get new software added to our servers.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼泪都笑了 2024-09-16 07:35:40

可以推送到网络共享,但 Mercurial 团队不推荐。

请参阅 Mercurial wiki 中发布存储库中的“共享磁盘”部分:

通常仅限于内部网,
一般推荐
由于一般
网络文件系统问题
可靠性

在我的工作场所,我们还将 HG 存储库保存在网络共享上(在 Windows 2003 服务器上),因为它是最容易设置的。我们这样做已经大约一年半了,我们从未遇到过像您这样的问题。

但在家里,我在 NAS 上有一个网络共享(可以从 Windows 访问它,看起来和感觉都像 Windows 共享,但 NAS 实际上在 Linux 上运行)。我很长一段时间没有遇到任何问题,但几周后我遇到了像你一样的类似错误(尽管有不同的错误消息)。
在 Mercurial bug 跟踪器上发布了此内容,我被告知我的问题可能是由事实上,我的 NAS 在 Linux 上运行,因为他们不知道真实 Windows 共享有任何问题:

在真实的 Windows 共享上(由
Windows)似乎没有
问题(从未听说过其他人有
这样做有问题)。

所以也许您的问题也是由类似的原因引起的。
您尝试推送到哪种类型的 Windows 共享?真的是在 Windows 机器上吗?

Pushing to a network share is possible, but not recommended by the Mercurial team.

See the "shared disk" part in Publishing Repositories in the Mercurial wiki:

generally restricted to intranets, not
generally recommended
due to general
issues with network filesystem
reliability

At my workplace, we are keeping our HG repositories on a network share (on a Windows 2003 server) as well because it was the easiest to set up. We're doing this for about one and a half year now, and we never had problems like yours.

But at home, I have a network share on a NAS (it's accessible from Windows and it looks and feels like a Windows share, but the NAS actually runs on Linux). I had no problems for a long time, but since a few weeks I'm having similar errors like you (with a different error message though).
I posted this on the Mercurial bug tracker, and I was told that my problem is probably caused by the fact that my NAS runs on Linux, because they don't know of any problems with real Windows shares:

On real Windows shares (served by
Windows) there doesn't seem to be a
problem (never heard of others having
problems doing that).

So maybe your problem is caused by something similar as well.
What kind of Windows share is it that you try to push to? Is it really on a Windows machine?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文