Mercurial > hg
changeset 21804:becb61de90a1
hg: update newly added listdir function of vfs in clone
This change invokes os.listdir() via newly added vfs function in clone.
author | Chinmay Joshi <c@chinmayjoshi.com> |
---|---|
date | Sat, 21 Jun 2014 14:49:49 +0530 |
parents | 62cc4055c6c8 |
children | 23f3241406ff |
files | mercurial/hg.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hg.py Sat Jun 21 14:44:09 2014 +0530 +++ b/mercurial/hg.py Sat Jun 21 14:49:49 2014 +0530 @@ -316,7 +316,7 @@ if destvfs.lexists(): if not destvfs.isdir(): raise util.Abort(_("destination '%s' already exists") % dest) - elif os.listdir(dest): + elif destvfs.listdir(): raise util.Abort(_("destination '%s' is not empty") % dest) srclock = destlock = cleandir = None