##// END OF EJS Templates
subrepo: use vfs.walk instead of os.walk...
FUJIWARA Katsunori -
r24726:74774876 default
parent child Browse files
Show More
@@ -303,7 +303,7 b' def _abssource(repo, push=False, abort=T'
303 303 raise util.Abort(_("default path for subrepository not found"))
304 304
305 305 def _sanitize(ui, vfs, ignore):
306 for dirname, dirs, names in os.walk(vfs.base):
306 for dirname, dirs, names in vfs.walk():
307 307 for i, d in enumerate(dirs):
308 308 if d.lower() == ignore:
309 309 del dirs[i]
@@ -313,8 +313,8 b' def _sanitize(ui, vfs, ignore):'
313 313 for f in names:
314 314 if f.lower() == 'hgrc':
315 315 ui.warn(_("warning: removing potentially hostile 'hgrc' "
316 "in '%s'\n") % dirname)
317 os.unlink(os.path.join(dirname, f))
316 "in '%s'\n") % vfs.join(dirname))
317 vfs.unlink(vfs.reljoin(dirname, f))
318 318
319 319 def subrepo(ctx, path):
320 320 """return instance of the right subrepo class for subrepo in path"""
General Comments 0
You need to be logged in to leave comments. Login now