# HG changeset patch # User Chinmay Joshi # Date 1403342389 -19800 # Node ID becb61de90a1a0384af535a393fb32e7da7a9059 # Parent 62cc4055c6c81ca6ecd4ea6d288e6eca2626699e hg: update newly added listdir function of vfs in clone This change invokes os.listdir() via newly added vfs function in clone. diff -r 62cc4055c6c8 -r becb61de90a1 mercurial/hg.py --- 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