共享网络驱动器上的Mercurial? [英] Mercurial on shared network drive?
问题描述
现在,我将回购存储在本地驱动器上.为了备份它,我必须将.hg复制到窗口的网络驱动器.
Right now I have my repo on my local drive. In order to back it up, I have to copy .hg to a window's network drive.
在 将Mercurial信息库放到共享的网络驱动器中?,Lasse Karlsen说,回购不应放在网络服务器上的共享文件夹中,因为"Mercurial无法在所有情况下都可靠地持有锁".
At Is it a good idea to put Mercurial Repository in shared Network drive?, Lasse Karlsen said the repo shouldn't be on a shared folder on a network server because "mercurial cannot reliably hold locks in all situations".
当存储库仅由一个用户更新时,这仍然会是一个问题吗?
Would this still be an issue when the repository is only updated by a single user?
如果是这样,有人可以向我解释为什么会发生腐败吗?
If so, can someone explain to me why the corruption happens?
前一段时间,我们的IT部门在设置辅助服务器方面遇到了问题.
A while back our IT had problem setting up a mercurial server.
我非常喜欢汞合金(它具有出色的界面并且非常易于使用),但是如果要为多个用户设置颈部会很痛苦,那么我愿意寻找一些东西别的.有人有任何建议(有理由)吗?
I am very fond of mercurial (it has a great interface and is very easy to work with), but if it's going to be such a pain in the neck to set up for multiple users, I am willing to look for something else. Does anyone have any suggestions (with reasons)?
我正在寻找具有以下属性的版本控制程序: 2.良好的界面(允许您轻松查看修订和多个修订中的代码更改). 3.作为本地存储库或网络存储库. 4. IT人员可以轻松地在其网络上进行安装.
I am looking for a revision control program that has the following attributes: 2. Good interface (allow you to easily see revision and changes to the code over multiple revisions). 3. Work as a local repo or a network repo. 4. IT will feel comfortable installing on their network.
谢谢, 斯蒂芬
推荐答案
我假设,以单机模式(仅一个用户|一个过程,由使用过的修改存储库启动),网络驱动器上的存储库将不会丢失锁,也不会损坏.
I suppose, in solo-mode (only one user|one proccess, initiated by used modify repository) repository on network drive will not lost locks and will be not broken.
但是任何设计的DVCS都提供了更自然,更可靠的备份方式:创建原始存储库的克隆并与上游同步(hg serve
+ http-repo是简单的方法,ssh-host和ssh型远程回购只是稍微困难一点)
But any DVCS by design offer more natural and reliable way of having backup: creating clones of original repository and syncing with upstream (hg serve
+ http-repo is easy way, ssh-host and ssh-type remote repo is only slightly harder way)
这篇关于共享网络驱动器上的Mercurial?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!