bundlerepo: update unlink in getremotechanges to use vfs
As per WindowsUTF8 plan, unlink from getremotechanges is updated to use vfs in this change.
--- 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)