Click here to Skip to main content
12,351,209 members (35,701 online)
Click here to Skip to main content
Articles » Languages » C# » How To » Downloads

Stats

60.6K views
782 downloads
39 bookmarked
Posted

Accessing CVS Repository with C#

, 24 Nov 2004
An article on accessing a CVS repositry using C#.
ConsoleApplication1
App.ico
ConsoleApplication1.csproj.user
CVSInterface
CVSInterface.csproj.user
using System;
using CVSInterface;

namespace ConsoleApplication1
{
	/// <summary>
	/// Summary description for Class1.
	/// </summary>
	class Class1
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		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 = "username@myserver.com:/home/cvs";
			//cmd.CvsRsh = "c:/Program Files/GNU/SSHCVS/ssh.exe";
			//cmd.WorkingDirectory = @"c:\cvs repository\application 1\";
			cmd.CvsRoot = "cnelson@zyvex.zyric.com:/home/cvs";
			cmd.CvsRsh = "c:/Program Files/GNU/SSHCVS/ssh.exe";
			cmd.WorkingDirectory = @"c:\MCS\Applications\NM90\";

			// Execute the command
			cmd.Start();
			cmd.WaitDone();

			// 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);
			}

			Console.ReadLine();

		}
	}
}

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.

License

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

Share

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...

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