~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to obsolete/annotate.py

  • Committer: Aaron Bentley
  • Date: 2007-01-17 14:30:19 UTC
  • Revision ID: abentley@panoramicfeedback.com-20070117143019-rj3n4op1aqav7bs5
Update versions to 0.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
    def run(self, filename):
68
68
        if not os.path.exists(filename):
69
69
            raise BzrCommandError("The file %s does not exist." % filename)
70
 
        branch = (Branch.open_containing(filename))
71
 
        file_id = branch.working_tree().path2id(branch.relpath(filename))
 
70
        branch,relpath = (Branch.open_containing(filename))
 
71
        file_id = branch.working_tree().path2id(relpath)
72
72
        if file_id is None:
73
73
            raise BzrCommandError("The file %s is not versioned." % filename)
74
74
        lines = branch.basis_tree().get_file(file_id)