用于监视 CVS 存储库更改的 C# 代码
有没有办法监视 CVS 存储库的任何提交?
然后在提交时,下载变更集中的所有文件以及它们在存储库中各自的路径?
原因是,我想在 CVS 存储库和开发服务器之间建立持续集成,只能通过 FTP 访问。
在上传之前,我还想通过压缩器/处理器运行所有文件。
那么上述情况用 C# 可行吗?
Is there a way to monitor a CVS repository for any commits?
Then on a commit, to download all the files within the changeset, along with their respective paths within the repository?
The reason is, I want to set up continuous integration between a CVS repository and a development server, which can only be accessed via FTP.
Before uploading, I also want to run all the files through compressors/processors.
So is the above possible with C#?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信做这些事情的标准方法是在 提交后挂钩(您的应用程序或向您的应用程序发送消息的东西)。
另一种选择是轮询。快速展示这个库来访问.NET中的CVS,它也可以用于执行您的要求的第二部分。
只需简单一点,大多数 CI 服务器都会为您处理轮询/通知。或者我错过了理解要求?
I believe the standard way of doing such things is to run something on the post commit hook (either your application or a something to send a message to your application).
The other option is polling. A quick good shows this library to access CVS in .NET, which can also be used to do the second part of your requirements.
Just one quick point on this, most CI servers will handle the polling/notification for you. Or have I miss understood the requirements?