451
499
with open(path_for_file, 'rb') as f:
452
500
_file_grep(f.read(), fp, opts, revno, path_prefix)
455
503
for (path, tree_path), chunks in tree.iter_files_bytes(to_grep):
456
504
path = _make_display_path(relpath, path)
457
505
_file_grep(b''.join(chunks), path, opts, revno, path_prefix,
461
509
def _make_display_path(relpath, path):