为 SVN 和 CVS 提供通用接口
SVN 和 CVS 是两个截然不同的系统,旨在解决相同的基本问题 - 源代码控制。
它们的工作方式不同,因此可能很难以完全相同的方式处理它们。
我想知道的是,是否可以开发一个公开相同接口的编程库或 API,但在幕后可以设置为与 SVN 或 CVS 存储库一起使用?
我的目标是在 .NET 或 Java(最有可能是 .NET)中开发这样的库,但我想了解一下这是否可行,以及是否有更好的方法来解决该问题。
其背景是:我正在构建一个基于 Web 的服务,该服务将涉及源代码控制托管,并且我希望同时支持 SVN 和 CVS,以便为尽可能多的开发人员提供服务。
SVN and CVS are two very different systems that aim to address the same basic issue - source control.
They both work in distinct ways, so it's probably difficult to deal with them exactly the same.
What I'm wondering is, would it be conceivable to develop a programming library or API that exposes the same interface, but under the hood, can be set up to work with either an SVN or CVS repository?
I'm aiming to develop such a library in either .NET or Java (most likely .NET), but I wanted to get some thoughts on how feasible this would be, and if there's a better way to approach the problem.
The context of this is: I'm building a web-based service that will involve source control hosting, and I want to support both SVN and CVS so as to serve the largest amount of developers possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
就我个人而言,我会忽略新产品的 CVS。 我的感觉是,强制它看起来像 SVN 的巨大额外努力最好花在其他东西上。 我不了解你们的市场,所以我可能是错的,但这必须值得考虑。
Personally I would ignore CVS for a new product. My feeling would be that the enormous extra effort to coerce it into looking like SVN would be better spent on other other stuff. I don't know your market, so I might be wrong, but that's got to be worth thinking about.
MSSCCI API 执行的操作非常类似:
http://alinconstantin.homeip.net/webdocs/ scc/msscci.htm
MSSCCI 尝试使所有源代码控制从 IDE 的角度看起来相同。
The MSSCCI API does something very similar:
http://alinconstantin.homeip.net/webdocs/scc/msscci.htm
The MSSCCI tries to make all source controls look the same from the perspective of the IDE.
viewvc 允许您浏览 svn 和 cvs 存储库。 也许现有的产品已经可以满足您的需求?
viewvc lets you browse svn and cvs repositories. maybe there is an existing product which will already do what you want?