Mercurial > public > mercurial-scm > hg-stable
diff mercurial/subrepo.py @ 25771:a7178d8fe7ee
subrepo: use vfs.basename instead of os.path.basename
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Fri, 10 Jul 2015 00:59:51 +0900 |
parents | 2538b87660be |
children | de654a83fe1c |
line wrap: on
line diff
--- a/mercurial/subrepo.py Fri Jul 10 00:59:51 2015 +0900 +++ b/mercurial/subrepo.py Fri Jul 10 00:59:51 2015 +0900 @@ -313,7 +313,7 @@ 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':