43
def file_grep(tree, id, relpath, path, patternc, eol_marker, outf):
43
def file_grep(tree, id, relpath, path, patternc, eol_marker, outf, line_number=True):
46
45
path = osutils.normpath(osutils.pathjoin(relpath, path))
47
46
path = path.replace('\\', '/')
48
47
path = path.replace(relpath + '/', '', 1)
51
52
for line in tree.get_file_lines(id):
52
53
res = patternc.search(line)