~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-14 16:16:53 UTC
  • mto: (1946.2.6 reduce-knit-churn)
  • mto: This revision was merged to the branch mainline in revision 1919.
  • Revision ID: john@arbash-meinel.com-20060814161653-54cdcdadcd4e9003
Remove bogus entry from BRANCH.TODO

Show diffs side-by-side

added added

removed removed

Lines of Context:
494
494
        self.format = format
495
495
 
496
496
 
 
497
 
497
498
class StrictCommitFailed(Exception):
498
499
    """Commit refused because there are unknowns in the tree."""
499
500
 
504
505
    is_user_error = False
505
506
 
506
507
    def __init__(self, branch, revision):
507
 
        BzrNewError.__init__(self, branch=branch, revision=revision)
508
 
 
509
 
 
510
 
# Inheriting from NoSuchRevision to maintain API compatibility
511
 
# technically, this could be a completely different exception
512
 
class InvalidRevisionSpec(NoSuchRevision):
513
 
    """Requested revision: %(spec)s does not exist in branch: %(branch)s%(extra)s"""
514
 
 
515
 
    is_user_error = True
516
 
 
517
 
    def __init__(self, spec, branch, extra=None):
518
 
        NoSuchRevision.__init__(self, branch=branch, revision=spec)
519
 
        self.spec = spec
520
 
        if extra:
521
 
            self.extra = '; ' + str(extra)
522
 
        else:
523
 
            self.extra = ''
 
508
        self.branch = branch
 
509
        self.revision = revision
524
510
 
525
511
 
526
512
class HistoryMissing(BzrError):