~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/annotate.py

RemovedĀ unusedĀ code

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
            except BzrError:
86
86
                pass        # use the whole name
87
87
        yield (revno_str, author, date_str, line_rev_id, text)
88
 
 
89
 
 
90
 
if __name__ == '__main__':
91
 
    from bzrlib.branch import Branch
92
 
    from bzrlib.trace import enable_default_logging
93
 
    from bzrlib.workingtree import WorkingTree
94
 
 
95
 
    enable_default_logging()
96
 
    b = Branch.open_containing(sys.argv[1])[0]
97
 
    tree = WorkingTree(b.base, b)
98
 
    rp = tree.relpath(sys.argv[1])
99
 
    tree = b.revision_tree(b.last_revision())
100
 
    file_id = tree.inventory.path2id(rp)
101
 
    file_version = tree.inventory[file_id].revision
102
 
    annotate_file(b, file_version, file_id, to_file = sys.stdout)