~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Aaron Bentley
  • Date: 2007-01-17 15:37:08 UTC
  • mto: This revision was merged to the branch mainline in revision 2239.
  • Revision ID: abentley@panoramicfeedback.com-20070117153708-4jni0ycaitv7xgra
change reserved_id to is_reserved_id, add check_not_reserved for DRY

Show diffs side-by-side

added added

removed removed

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