简体   繁体   中英

C# code to monitor a CVS repository for changes

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#?

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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