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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-03-12 02:46:38 UTC
  • mfrom: (3144.6.3 bzr.ab.integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080312024638-d1zdt09upkzq52is
Add 'kind' to UnknownFormatError (#173980, dwatkins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
684
684
 
685
685
class UnknownFormatError(BzrError):
686
686
    
687
 
    _fmt = "Unknown branch format: %(format)r"
 
687
    _fmt = "Unknown %(kind)s format: %(format)r"
 
688
 
 
689
    def __init__(self, format, kind='branch'):
 
690
        self.kind = kind
 
691
        self.format = format
688
692
 
689
693
 
690
694
class IncompatibleFormat(BzrError):