Beispiel #1
0
 void OperationDone( )
 {
     if (done)
     {
         return;
     }
     HostServicesSingleton.SafeThreadCall(WriteMid, "Done");
     try
     {
         if (inOperationForm != null)
         {
             inOperationForm.Operation = null;
             HostServicesSingleton.SafeThreadCall(inOperationForm.Close);
             inOperationForm = null;
         }
     }
     catch (Exception e)
     {
         MessageService.ShowError(e);
     }
     finally
     {
         done = true;
     }
 }
Beispiel #2
0
        private void DoDiffOperation()
        {
            output = null;
            MemoryStream outStream = new MemoryStream();
            MemoryStream errStream = new MemoryStream();

            SvnClient.Instance.Client.Diff(new string [] {},
                                           fileName,
                                           fromRevision,
                                           fileName,
                                           toRevision,
                                           Recurse.None,
                                           false,
                                           true,
                                           outStream,
                                           errStream);
            output = Encoding.Default.GetString(outStream.ToArray());
            HostServicesSingleton.SafeThreadCall(SetOutput);
        }