~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/annotate.py

  • Committer: Robert Collins
  • Date: 2005-10-17 23:13:00 UTC
  • mto: This revision was merged to the branch mainline in revision 1462.
  • Revision ID: robertc@robertcollins.net-20051017231300-e1c9e931bcfacd6a
Branch.open_containing now returns a tuple (Branch, relative-path).

This allows direct access to the common case of 'get me this file
from its branch'. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
    from bzrlib.workingtree import WorkingTree
93
93
 
94
94
    enable_default_logging()
95
 
    b = Branch.open_containing(sys.argv[1])
 
95
    b = Branch.open_containing(sys.argv[1])[0]
96
96
    tree = WorkingTree(b.base, b)
97
97
    rp = tree.relpath(sys.argv[1])
98
98
    tree = b.revision_tree(b.last_revision())