subrepo: use vfs.basename instead of os.path.basename
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Fri, 10 Jul 2015 00:59:51 +0900
changeset 25771 a7178d8fe7ee
parent 25770 39de2e9cc6f4
child 25772 5471965af5cb
subrepo: use vfs.basename instead of os.path.basename
mercurial/subrepo.py
--- 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':