~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/annotate.py

  • Committer: Robert Collins
  • Date: 2005-10-16 22:33:10 UTC
  • mfrom: (1457.1.4)
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051016223310-c4798eb9deb09a7c
Merge start of removal of WorkingTree concepts from Branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
if __name__ == '__main__':
68
68
    from bzrlib.branch import Branch
69
69
    from bzrlib.trace import enable_default_logging
 
70
    from bzrlib.workingtree import WorkingTree
70
71
 
71
72
    enable_default_logging()
72
73
    b = Branch.open_containing(sys.argv[1])
73
 
    rp = b.relpath(sys.argv[1])
 
74
    tree = WorkingTree(b.base, b)
 
75
    rp = tree.relpath(sys.argv[1])
74
76
    tree = b.revision_tree(b.last_revision())
75
77
    file_id = tree.inventory.path2id(rp)
76
78
    file_version = tree.inventory[file_id].revision