From: Clayton H. <dr...@us...> - 2004-11-21 22:42:56
|
Update of /cvsroot/sharpcvslib/sharpcvslib/src/ICSharpCode/SharpCvsLib/Client In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30314/src/ICSharpCode/SharpCvsLib/Client Modified Files: CVSServerConnection.cs Log Message: Fixed bug in Manager.UpdateCvsPassfile method, was using the CVS_PASSFILE location instead of the file name passed in. Also reformatted the response message output in -verbose mode. Index: CVSServerConnection.cs =================================================================== RCS file: /cvsroot/sharpcvslib/sharpcvslib/src/ICSharpCode/SharpCvsLib/Client/CVSServerConnection.cs,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** CVSServerConnection.cs 5 Nov 2004 07:37:51 -0000 1.48 --- CVSServerConnection.cs 21 Nov 2004 22:41:13 -0000 1.49 *************** *** 336,352 **** /// <param name="request"></param> public void SubmitRequest(IRequest request) { - if (LOGGER.IsDebugEnabled) { - StringBuilder msg = new StringBuilder (); - msg.Append ("\nSubmit Request"); - msg.Append ("\n\trequest=[").Append (request).Append ("]"); - LOGGER.Debug (msg); - } - if (null != request && null != request.RequestString) { ! try { this.RequestMessageEvent(this, new MessageEventArgs(request, request.GetType().Name)); - } catch (NullReferenceException) { - LOGGER.Debug("No one is listening to request message event."); } } --- 336,343 ---- /// <param name="request"></param> public void SubmitRequest(IRequest request) { if (null != request && null != request.RequestString) { ! if (null != this.RequestMessageEvent) { this.RequestMessageEvent(this, new MessageEventArgs(request, request.GetType().Name)); } } *************** *** 370,377 **** /// otherwise <code>false</code>.</param> public void SendFile(string fullPath, bool isBinary) { ! if (isBinary) { ! UncompressedFileHandler.SendBinaryFile(OutputStream, fullPath); ! } else { ! UncompressedFileHandler.SendTextFile(OutputStream, fullPath); } } --- 361,374 ---- /// otherwise <code>false</code>.</param> public void SendFile(string fullPath, bool isBinary) { ! try { ! if (isBinary) { ! UncompressedFileHandler.SendBinaryFile(OutputStream, fullPath); ! } else { ! UncompressedFileHandler.SendTextFile(OutputStream, fullPath); ! } ! } catch (IOException) { ! // try to connect again and retry the send ! this.Connect(this.repository, this.protocol.Password); ! this.SendFile(fullPath, isBinary); } } |