# HG changeset patch # User Chinmay Joshi # Date 2014-06-21 09:19:49 # 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 --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -316,7 +316,7 @@ def clone(ui, peeropts, source, dest=Non 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