Click here to Skip to main content
11,929,675 members (60,447 online)
Click here to Skip to main content
Articles » Languages » C# » How To » Downloads


39 bookmarked

Accessing CVS Repository with C#

, 24 Nov 2004
An article on accessing a CVS repositry using C#.
using System;
using CVSInterface;

namespace ConsoleApplication1
	/// <summary>
	/// Summary description for Class1.
	/// </summary>
	class Class1
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		static void Main(string[] args)

			// CVS History File command
			CVSGetFileHistory cmd = new CVSGetFileHistory("MainForm.cs");

			// Indicate the login repository and RSH command line
			//cmd.CvsRoot = "";
			//cmd.CvsRsh = "c:/Program Files/GNU/SSHCVS/ssh.exe";
			//cmd.WorkingDirectory = @"c:\cvs repository\application 1\";
			cmd.CvsRoot = "";
			cmd.CvsRsh = "c:/Program Files/GNU/SSHCVS/ssh.exe";
			cmd.WorkingDirectory = @"c:\MCS\Applications\NM90\";

			// Execute the command

			// Print out the results
			foreach (CVSHistoryItem hi in cmd.History)
				Console.WriteLine("File: {0}", hi.File);
				Console.WriteLine("Revision: {0}",hi.Revision);
				Console.WriteLine("Date: {0}", hi.Date);
				Console.WriteLine("Author: {0}", hi.Author);
				Console.WriteLine("Description: {0}", hi.Description);



By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Jay Nelson
Web Developer
United States United States
I have been developing software professionaly since 1991 writing software in Automation and Manufacturing environments. For 14 years I worked for companies that built custom robotic automated equipment for the semiconductor, telecommunications, and other industies. Presently, I work for a medical device manufacturer developing applications for the compact framework.

My undergraduate degrees are in Mathematics and Philosopy. My graduate degree is in Management Information Systems. I am MCSD certified in Visual C++ 6.0 and MCSD.NET certified in C#.

I enjoy triathlons and reading.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.151126.1 | Last Updated 25 Nov 2004
Article Copyright 2004 by Jay Nelson
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid