[PATCH 1 of 4] bundlerepo: update unlink in getremotechanges to use vfs

Chinmay Joshi c at chinmayjoshi.com
Tue May 27 13:58:00 CDT 2014


# HG changeset patch
# User Chinmay Joshi <c at chinmayjoshi.com>
# Date 1401207963 -19800
#      Tue May 27 21:56:03 2014 +0530
# Node ID 5dc8d26e1da18dfb8252115ac306d7f8fdd25582
# Parent  bee0e1cffdd36aab975090f1b51b81b6b14790fa
bundlerepo: update unlink in getremotechanges to use vfs

As per WindowsUTF8 plan, unlink from getremotechanges is updated to use vfs in this change.

diff --git a/mercurial/bundlerepo.py b/mercurial/bundlerepo.py
--- a/mercurial/bundlerepo.py
+++ b/mercurial/bundlerepo.py
@@ -352,7 +352,7 @@
     if not incoming:
         try:
             if bundlename:
-                os.unlink(bundlename)
+                repo.vfs.unlink(bundlename)
         except OSError:
             pass
         return repo, [], other.close
@@ -394,7 +394,7 @@
         if bundlerepo:
             bundlerepo.close()
         if bundle:
-            os.unlink(bundle)
+            repo.vfs.unlink(bundle)
         other.close()
 
     return (localrepo, csets, cleanup)


More information about the Mercurial-devel mailing list