Author: lluis
Date: 2006-12-17 12:39:11 -0500 (Sun, 17 Dec 2006)
New Revision: 69616

Modified:
   trunk/monodevelop/Extras/ChangeLogAddIn/ChangeLog
   trunk/monodevelop/Extras/ChangeLogAddIn/CommitDialogExtensionWidget.cs
Log:
* CommitDialogExtensionWidget.cs: Use the FileService for copying and
  deleting files.

Modified: trunk/monodevelop/Extras/ChangeLogAddIn/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/ChangeLogAddIn/ChangeLog   2006-12-17 17:38:45 UTC 
(rev 69615)
+++ trunk/monodevelop/Extras/ChangeLogAddIn/ChangeLog   2006-12-17 17:39:11 UTC 
(rev 69616)
@@ -1,3 +1,8 @@
+2006-12-17  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
+
+       * CommitDialogExtensionWidget.cs: Use the FileService for copying and
+         deleting files.
+
 2006-12-01  Michael Hutchinson <[EMAIL PROTECTED]> 
 
        * Makefile.am: Only build if VersionControl AddIn is enabled, 

Modified: trunk/monodevelop/Extras/ChangeLogAddIn/CommitDialogExtensionWidget.cs
===================================================================
--- trunk/monodevelop/Extras/ChangeLogAddIn/CommitDialogExtensionWidget.cs      
2006-12-17 17:38:45 UTC (rev 69615)
+++ trunk/monodevelop/Extras/ChangeLogAddIn/CommitDialogExtensionWidget.cs      
2006-12-17 17:39:11 UTC (rev 69616)
@@ -92,7 +92,7 @@
                        
                        // Make a backup copy of the log file
                        string auxf = System.IO.Path.GetTempFileName ();
-                       File.Copy (logf, auxf, true);
+                       Runtime.FileService.CopyFile (logf, auxf);
                        tmpFile = auxf;
                        
                        // Read the log file and add the new entry
@@ -102,7 +102,7 @@
                                tf.Save ();
                        } catch {
                                // Restore the log file
-                               File.Copy (auxf, logf, true);
+                               Runtime.FileService.CopyFile (auxf, logf);
                                throw;
                        }
                        return true;
@@ -113,11 +113,11 @@
                        if (!success) {
                                if (tmpFile != null && File.Exists (tmpFile)) {
                                        string logf = GetChangelogFile 
(changeSet.BaseLocalPath);
-                                       File.Copy (tmpFile, logf, true);
+                                       Runtime.FileService.CopyFile (tmpFile, 
logf);
                                }
                        }
                        if (tmpFile != null && File.Exists (tmpFile))
-                               File.Delete (tmpFile);
+                               Runtime.FileService.DeleteFile (tmpFile);
                }
                
                void OnClickButton (object s, EventArgs args)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to