comparison 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
comparison
equal deleted inserted replaced
25770:39de2e9cc6f4 25771:a7178d8fe7ee
311 for dirname, dirs, names in vfs.walk(): 311 for dirname, dirs, names in vfs.walk():
312 for i, d in enumerate(dirs): 312 for i, d in enumerate(dirs):
313 if d.lower() == ignore: 313 if d.lower() == ignore:
314 del dirs[i] 314 del dirs[i]
315 break 315 break
316 if os.path.basename(dirname).lower() != '.hg': 316 if vfs.basename(dirname).lower() != '.hg':
317 continue 317 continue
318 for f in names: 318 for f in names:
319 if f.lower() == 'hgrc': 319 if f.lower() == 'hgrc':
320 ui.warn(_("warning: removing potentially hostile 'hgrc' " 320 ui.warn(_("warning: removing potentially hostile 'hgrc' "
321 "in '%s'\n") % vfs.join(dirname)) 321 "in '%s'\n") % vfs.join(dirname))