# HG changeset patch # User Chinmay Joshi # Date 1401207963 -19800 # Node ID dbf292f65b0983fde6f233d140a0ed110c3a4824 # Parent f1bcc33a5c52c331f22556586b302a68cfc0933b bundlerepo: update unlink in getremotechanges to use vfs As per WindowsUTF8 plan, unlink from getremotechanges is updated to use vfs in this change. diff -r f1bcc33a5c52 -r dbf292f65b09 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)