简体   繁体   English

版本控制器建议:SVN,TFS等

[英]Versioning Server Advice: SVN, TFS, Etc

I have a small team of unusually unreliable people and am trying to setup the foundation to keep any progress intact. 我有一个非常不可靠的小团队,我正在努力建立基础以保持任何进展。 I am familiar with Team Foundation Server and I like the basic function of checking out/in a single file to work on and locking it. 我熟悉Team Foundation Server,我喜欢签出/在单个文件中工作并锁定它的基本功能。 However, for this team, I'll need to operate the server application on a shared hosting Linux server. 但是,对于这个团队,我需要在共享主机Linux服务器上运行服务器应用程序。

I managed to get GIT installed, but it doesn't seem to be what I'm looking for. 我设法安装了GIT,但它似乎并不是我想要的。 Does anyone know of a different version control system to perform these basic file locking functions without maintaining multiple repos? 有没有人知道不同的版本控制系统来执行这些基本的文件锁定功能而无需维护多个回购?

Most new version control systems shy away from pessimistic locking, Microsoft products usually implement it (VSS/TFS). 大多数新版本控制系统都避免悲观锁定,微软产品通常会实现它(VSS / TFS)。 It is possible to implement it in SVN but as some of the comments state it is usually preferable to use optimistic locking. 可以在SVN中实现它,但正如一些注释所述,通常最好使用乐观锁定。

With pessimistic locking 1 dev can work on a file at any time, 'locking' it from others. 使用悲观锁定1 dev可以随时处理文件,“锁定”其他文件。 This removes the potential for any merging of files that have been altered by >1 dev. 这消除了任何合并已被> 1 dev改变的文件的可能性。

With optimistic locking > 1 dev can edit a file at any time, the only 'drawback' for this is that your developers may need to merge. 使用乐观锁定> 1 dev可以随时编辑文件,唯一的“缺点”是您的开发人员可能需要合并。 Having used both I would go for optimistic locking every time, pessimistic just causes a headache. 两次使用后,我每次都会乐观锁定,悲观只会引起头痛。

I would recommend trying to solve the issues that make you want to use pessimistic locking rather than using it as a bandage to try to get your unreliable developers to work right. 我建议尝试解决使您想要使用悲观锁定的问题,而不是将其用作绷带以试图让不可靠的开发人员正常工作。 You never know, allow them some freedom and they might surprise you! 你永远不会知道,给他们一些自由,他们可能会让你大吃一惊!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM