Пример #1
0
		protected void ReportAndCheckoutCVS(string CVSUser, 
			string CVSServer, string CVSPath, 
			string CVSModule, DirectoryInfo CVSExportRoot, string branch, bool report){
			ShellCmd cmd;
			if (report) Report("Exporting CVS files"); 
			cmd = new ShellCmd(CVS, 
				" -d :pserver:" + CVSUser + "@cvs.:" + CVSPath + " checkout  -r " + branch + " " + CVSModule , CVSExportRoot, false);
			if (report) Report(cmd.ToString() + " --(This may take a minute.)");
			cmd.Run();
			cmd.WaitForCommandToFinish();
		}
Пример #2
0
		protected bool ReportAndLoginToCVS(string CVSUser, string CVSPass, string CVSServer, string CVSPath){
			ShellCmd cmd;
			Report("Login to CVS");
			cmd = new ShellCmd(CVS, 
				" -d :pserver:" + CVSUser + "@cvs.:" + CVSPath + " login", true);
			cmd.Stdin.WriteLine(CVSPass);
			cmd.WaitForCommandToFinish();
			Report(cmd.ToString());
			cmd.WaitForCommandToFinish();
			return true;
		}