如何处理 Mercurial 中不支持并发编辑的文件?
我将 Mercurial 与 TortoiseHg 一起使用。每个开发人员都有自己的存储库,并且服务器上有一个中央存储库用于同步我们的更改。 (这听起来很蹩脚,但我们正在使用它来管理遗留 VB6 项目的源代码。对此我们无能为力......)
正如其他地方所指出的,VB6 中存在一个大问题,即合并 . frx(表单资源)文件。因此,代码更改似乎合并得很好,但如果两个开发人员同时在表单设计视图中进行更改,我们就无法合并。
我同意禁止并发编辑,但当然 Mercurial 的重点在于它是分布式的,因此没有选项可以在编辑之前强制锁定文件。我不相信有 Mercurial 解决方案可以解决这个问题,所以我想知道:使用 Mercurial 进行版本控制的其他开发人员,你们是否有一些第三方工具可以在必要时帮助锁定文件进行编辑?我们是否犯了一个错误,使用 Mercurial 而不是 SVN 之类的东西?
I'm using Mercurial with TortoiseHg. Each developer has their own repositories, and there's one central repository on the server for synchronizing our changes. (This will sound lame, but we're using it to manage the source for a legacy VB6 project. Nothing we can do about that...)
As has been pointed out elsewhere, there is a big problem in VB6 with merging the .frx (form resources) files. So code changes seem to merge fine, but if two developers both make changes at the same time in the form design view, we can't merge.
I'm ok with disallowing concurrent edits, but of course the whole point of Mercurial is that it's distributed so there is no option to force a file to be locked before editing. I don't believe there's a Mercurial solution for this, so I'm wondering: other developers who are using Mercurial for version control, do you have some 3rd party tool that assists with locking files for editing in the cases where it's necessary? Did we make a mistake using Mercurial instead of something like SVN?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听说有些人使用独立的锁定服务器(尤其是这个)。
Heard of some people using a standalone lock-server (this one in particular).
这是 Bryan O'Sullivan 关于 Mercurial 的书:
This is from Bryan O'Sullivan's book on Mercurial: