~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-08-14 12:14:51 UTC
  • mfrom: (4608.1.4 408824-test-upgrade)
  • Revision ID: pqm@pqm.ubuntu.com-20090814121451-n3h9cp3c26mmpe9m
(mbp) cleanup check_conversion_target and upgrade blackbox tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
2006
2006
 
2007
2007
class BadConversionTarget(BzrError):
2008
2008
 
2009
 
    _fmt = "Cannot convert to format %(format)s.  %(problem)s"
 
2009
    _fmt = "Cannot convert from format %(from_format)s to format %(format)s." \
 
2010
            "    %(problem)s"
2010
2011
 
2011
 
    def __init__(self, problem, format):
 
2012
    def __init__(self, problem, format, from_format=None):
2012
2013
        BzrError.__init__(self)
2013
2014
        self.problem = problem
2014
2015
        self.format = format
 
2016
        self.from_format = from_format or '(unspecified)'
2015
2017
 
2016
2018
 
2017
2019
class NoDiffFound(BzrError):