Click here to Skip to main content
12,957,526 members (58,369 online)
Click here to Skip to main content
Articles » Languages » C# » How To » Downloads


39 bookmarked
Posted 23 Nov 2004

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
Architect Omron Adept Technologies, Inc
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 company that manufacturers industrial robots where I write high level coordination and control software.

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 am also have the PMI-ACP certification.

I enjoy karate and reading.

You may also be interested in...

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