/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/plugins/grep/grep.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-21 02:50:08 UTC
  • mto: This revision was merged to the branch mainline in revision 7207.
  • Revision ID: jelmer@jelmer.uk-20181121025008-tiutar263ri5rvkm
Undo removal of kind.

Show diffs side-by-side

added added

removed removed

Lines of Context:
416
416
    #                and hits manually refilled. Could do this again if it was
417
417
    #                for a good reason, otherwise cache might want purging.
418
418
    outputter = opts.outputter
419
 
    for fp, fc, entry in tree.list_files(include_root=False,
 
419
    for fp, fc, fkind, entry in tree.list_files(include_root=False,
420
420
        from_dir=from_dir, recursive=opts.recursive):
421
421
 
422
422
        if _skip_file(opts.include, opts.exclude, fp):
423
423
            continue
424
424
 
425
 
        if fc == 'V' and entry.kind == 'file':
 
425
        if fc == 'V' and fkind == 'file':
426
426
            tree_path = osutils.pathjoin(from_dir if from_dir else '', fp)
427
427
            if revno is not None:
428
428
                # If old result is valid, print results immediately.
429
429
                # Otherwise, add file info to to_grep so that the
430
430
                # loop later will get chunks and grep them
431
 
                cache_id = tree.get_file_revision(tree_path, entry.file_id)
 
431
                cache_id = tree.get_file_revision(tree_path)
432
432
                if cache_id in outputter.cache:
433
433
                    # GZ 2010-06-05: Not really sure caching and re-outputting
434
434
                    #                the old path is really the right thing,