hg: update newly added listdir function of vfs in clone
This change invokes os.listdir() via newly added vfs function in clone.
--- 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