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

  • Committer: Martin Pool
  • Date: 2005-08-04 19:31:20 UTC
  • Revision ID: mbp@sourcefrog.net-20050804193119-5be8d5233c4bef96
- move in tutorial from web site
  needs more updates

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
        Exception.__init__(self, "These branches have diverged.")
131
131
 
132
132
 
 
133
class NoSuchRevision(BzrError):
 
134
    def __init__(self, branch, revision):
 
135
        self.branch = branch
 
136
        self.revision = revision
 
137
        msg = "Branch %s has no revision %d" % (branch, revision)
 
138
        BzrError.__init__(self, msg)
 
139
 
 
140
 
133
141
######################################################################
134
142
# branch objects
135
143
 
594
602
            try:
595
603
                return self.revision_store[revision_id]
596
604
            except IndexError:
597
 
                raise bzrlib.errors.NoSuchRevision(revision_id)
 
605
                raise bzrlib.errors.RevisionNotPresent(revision_id)
598
606
        finally:
599
607
            self.unlock()
600
608