Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: <drakmar@us...> - 2003-09-29 23:03:23
|
Update of /cvsroot/sharpcvslib/sharpcvslib/src/ICSharpCode/SharpCvsLib/Client In directory sc8-pr-cvs1:/tmp/cvs-serv8717/src/ICSharpCode/SharpCvsLib/Client Modified Files: CVSServerConnection.cs Log Message: Changed the process into buffered stream location for the ext authentication. Index: CVSServerConnection.cs =================================================================== RCS file: /cvsroot/sharpcvslib/sharpcvslib/src/ICSharpCode/SharpCvsLib/Client/CVSServerConnection.cs,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** CVSServerConnection.cs 28 Sep 2003 07:48:35 -0000 1.14 --- CVSServerConnection.cs 28 Sep 2003 16:20:01 -0000 1.15 *************** *** 314,329 **** case "ext": try { ProcessStartInfo startInfo = ! new ProcessStartInfo(shell, "-l " + ! repository.CvsRoot.User + ! " " + ! repository.CvsRoot.Host + ! " \"cvs server\""); if (LOGGER.IsDebugEnabled) { ! LOGGER.Debug("-l " + repository.CvsRoot.User + ! " " + ! repository.CvsRoot.Host + ! " \"cvs server\""); } startInfo.RedirectStandardError = true; --- 314,329 ---- case "ext": try { + StringBuilder processArgs = new StringBuilder (); + processArgs.Append ("-l ").Append (repository.CvsRoot.User); + processArgs.Append (" ").Append (repository.CvsRoot.Host); + processArgs.Append (" \"cvs server\""); ProcessStartInfo startInfo = ! new ProcessStartInfo(shell, processArgs.ToString ()); if (LOGGER.IsDebugEnabled) { ! StringBuilder msg = new StringBuilder (); ! msg.Append("Process=[").Append(shell).Append("]"); ! msg.Append("Process Arguments=[").Append(processArgs).Append("]"); ! LOGGER.Debug(msg); } startInfo.RedirectStandardError = true; *************** *** 331,334 **** --- 331,338 ---- startInfo.RedirectStandardOutput = true; startInfo.UseShellExecute = false; + BufferedStream errstream = new BufferedStream(p.StandardError.BaseStream); + inputstream = new CvsStream(new BufferedStream(p.StandardOutput.BaseStream)); + outputstream = new CvsStream(new BufferedStream(p.StandardInput.BaseStream)); + p = new Process(); p.StartInfo = startInfo; *************** *** 341,348 **** throw new ExecuteShellException(shell); } - inputstream = outputstream = new CvsStream (tcpclient.GetStream ()); - // BufferedStream errstream = new BufferedStream(p.StandardError.BaseStream); - // inputstream = new CvsStream(new BufferedStream(p.StandardOutput.BaseStream)); - // outputstream = new CvsStream(new BufferedStream(p.StandardInput.BaseStream)); break; case "pserver": --- 345,348 ---- *************** *** 394,398 **** default: SendMessage("Unknown Server response : >" + retStr + "<"); ! throw new ApplicationException("Unknown Server response : >" + retStr + "<"); // TODO : invent a better exception for this case. } break; --- 394,399 ---- default: SendMessage("Unknown Server response : >" + retStr + "<"); ! // TODO : invent a better exception for this case. ! throw new ApplicationException("Unknown Server response : >" + retStr + "<"); } break; |