366
367
dir_grep(tree, path, relpath, opts, revno, path_prefix)
368
versioned_file_grep(tree, tree_path, '.', path, opts, revno)
369
versioned_file_grep(tree, id, '.', path, opts, revno)
371
374
def workingtree_grep(opts):
372
375
revno = opts.print_revno = None # for working tree set revno to None
374
377
tree, branch, relpath = \
377
380
msg = ('Cannot search working tree. Working tree not found.\n'
378
381
'To search for specific revision in history use the -r option.')