~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to annotate.py

  • Committer: Aaron Bentley
  • Date: 2005-07-14 20:15:16 UTC
  • Revision ID: abentley@panoramicfeedback.com-20050714201516-2bf2fdfc13301ce8
Convert paths to branch-relative in annotate

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
        if not os.path.exists(filename):
62
62
            raise BzrCommandError("The file %s does not exist." % filename)
63
63
        branch = (Branch(filename))
64
 
        file_id = branch.working_tree().path2id(filename)
 
64
        file_id = branch.working_tree().path2id(branch.relpath(filename))
65
65
        if file_id is None:
66
66
            raise BzrCommandError("The file %s is not versioned." % filename)
67
67
        lines = branch.basis_tree().get_file(file_id)