~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Aaron Bentley
  • Date: 2007-01-11 17:20:25 UTC
  • mto: This revision was merged to the branch mainline in revision 2239.
  • Revision ID: abentley@panoramicfeedback.com-20070111172025-8rnvvm3jqx7h5uvv
Reject reserved ids in versiondfile, tree, branch and repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
199
199
        self.revision_id = revision_id
200
200
        self.branch = branch
201
201
 
 
202
class ReservedId(BzrError):
 
203
    
 
204
    _fmt = "Reserved revision-id {%(revision_id)s}"
 
205
    
 
206
    def __init__(self, revision_id):
 
207
        self.revision_id = revision_id
202
208
 
203
209
class NoSuchId(BzrError):
204
210