~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to obsolete/annotate.py

  • Committer: Aaron Bentley
  • Date: 2006-02-21 05:51:15 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20060221055115-d1a74f28c9016983
Fixed the push command

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,relpath = (Branch.open_containing(filename))
71
 
        file_id = branch.working_tree().path2id(relpath)
 
70
        branch = (Branch.open_containing(filename))[0]
 
71
        file_id = branch.working_tree().path2id(branch.relpath(filename))
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)