/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/revisionspec.py

  • Committer: Jelmer Vernooij
  • Date: 2017-11-12 13:09:58 UTC
  • mto: This revision was merged to the branch mainline in revision 6819.
  • Revision ID: jelmer@jelmer.uk-20171112130958-6e3rstt48asiedzn
Swap arguments for annotate_iter.

Show diffs side-by-side

added added

removed removed

Lines of Context:
897
897
            self._raise_invalid(numstring, context_branch)
898
898
        tree, file_path = workingtree.WorkingTree.open_containing(path)
899
899
        with tree.lock_read():
900
 
            file_id = tree.path2id(file_path)
901
 
            if file_id is None:
 
900
            if not tree.has_filename(file_path):
902
901
                raise errors.InvalidRevisionSpec(self.user_spec,
903
902
                    context_branch, "File '%s' is not versioned." %
904
903
                    file_path)
905
 
            revision_ids = [r for (r, l) in tree.annotate_iter(file_id)]
 
904
            revision_ids = [r for (r, l) in tree.annotate_iter(file_path)]
906
905
        try:
907
906
            revision_id = revision_ids[index]
908
907
        except IndexError: