/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/branch.py

  • Committer: Jelmer Vernooij
  • Date: 2019-06-03 23:48:08 UTC
  • mfrom: (7316 work)
  • mto: This revision was merged to the branch mainline in revision 7328.
  • Revision ID: jelmer@jelmer.uk-20190603234808-15yk5c7054tj8e2b
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
364
364
        provide a more efficient implementation.
365
365
        """
366
366
        if len(revno) == 1:
367
 
            return self.get_rev_id(revno[0])
 
367
            try:
 
368
                return self.get_rev_id(revno[0])
 
369
            except errors.RevisionNotPresent as e:
 
370
                raise errors.GhostRevisionsHaveNoRevno(revno[0], e.revision_id)
368
371
        revision_id_to_revno = self.get_revision_id_to_revno_map()
369
372
        revision_ids = [revision_id for revision_id, this_revno
370
373
                        in viewitems(revision_id_to_revno)