bundlerepo: update unlink in getremotechanges to use vfs
authorChinmay Joshi <c@chinmayjoshi.com>
Tue, 27 May 2014 21:56:03 +0530
changeset 21562 dbf292f65b09
parent 21561 f1bcc33a5c52
child 21563 764b691b8bda
bundlerepo: update unlink in getremotechanges to use vfs As per WindowsUTF8 plan, unlink from getremotechanges is updated to use vfs in this change.
mercurial/bundlerepo.py
--- a/mercurial/bundlerepo.py	Tue May 27 12:09:34 2014 -0700
+++ b/mercurial/bundlerepo.py	Tue May 27 21:56:03 2014 +0530
@@ -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)