~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-06-29 00:00:00 UTC
  • mfrom: (2563.1.1 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070629000000-dmkdjthna7njsccg
(James Westby) Fix bug #122656 by raising a nice error for 'bzr annotate nonexistant'

Show diffs side-by-side

added added

removed removed

Lines of Context:
3142
3142
            else:
3143
3143
                revision_id = revision[0].in_history(branch).rev_id
3144
3144
            file_id = tree.path2id(relpath)
 
3145
            if file_id is None:
 
3146
                raise errors.NotVersionedError(filename)
3145
3147
            tree = branch.repository.revision_tree(revision_id)
3146
3148
            file_version = tree.inventory[file_id].revision
3147
3149
            annotate_file(branch, file_version, file_id, long, all, sys.stdout,