Show More
@@ -303,7 +303,7 b' def _abssource(repo, push=False, abort=T' | |||||
303 | raise util.Abort(_("default path for subrepository not found")) |
|
303 | raise util.Abort(_("default path for subrepository not found")) | |
304 |
|
304 | |||
305 | def _sanitize(ui, vfs, ignore): |
|
305 | def _sanitize(ui, vfs, ignore): | |
306 |
for dirname, dirs, names in |
|
306 | for dirname, dirs, names in vfs.walk(): | |
307 | for i, d in enumerate(dirs): |
|
307 | for i, d in enumerate(dirs): | |
308 | if d.lower() == ignore: |
|
308 | if d.lower() == ignore: | |
309 | del dirs[i] |
|
309 | del dirs[i] | |
@@ -313,8 +313,8 b' def _sanitize(ui, vfs, ignore):' | |||||
313 | for f in names: |
|
313 | for f in names: | |
314 | if f.lower() == 'hgrc': |
|
314 | if f.lower() == 'hgrc': | |
315 | ui.warn(_("warning: removing potentially hostile 'hgrc' " |
|
315 | ui.warn(_("warning: removing potentially hostile 'hgrc' " | |
316 | "in '%s'\n") % dirname) |
|
316 | "in '%s'\n") % vfs.join(dirname)) | |
317 |
|
|
317 | vfs.unlink(vfs.reljoin(dirname, f)) | |
318 |
|
318 | |||
319 | def subrepo(ctx, path): |
|
319 | def subrepo(ctx, path): | |
320 | """return instance of the right subrepo class for subrepo in path""" |
|
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