Mercurial > hg
changeset 21562:dbf292f65b09
bundlerepo: update unlink in getremotechanges to use vfs
As per WindowsUTF8 plan, unlink from getremotechanges is updated to use vfs in this change.
author | Chinmay Joshi <c@chinmayjoshi.com> |
---|---|
date | Tue, 27 May 2014 21:56:03 +0530 |
parents | f1bcc33a5c52 |
children | 764b691b8bda |
files | mercurial/bundlerepo.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)