# HG changeset patch # User FUJIWARA Katsunori # Date 2015-07-09 15:59:51 # Node ID a7178d8fe7ee5f67cab8aecffc50674bd6734897 # Parent 39de2e9cc6f41391391112cf7511e83e2272f878 subrepo: use vfs.basename instead of os.path.basename diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -313,7 +313,7 @@ def _sanitize(ui, vfs, ignore): if d.lower() == ignore: del dirs[i] break - if os.path.basename(dirname).lower() != '.hg': + if vfs.basename(dirname).lower() != '.hg': continue for f in names: if f.lower() == 'hgrc':