~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Andrew Bennetts
  • Date: 2010-01-11 05:58:22 UTC
  • mto: This revision was merged to the branch mainline in revision 4965.
  • Revision ID: andrew.bennetts@canonical.com-20100111055822-npdkf88i86i1g54h
Fix HPSS tests; pass 'location is a repository' message via smart server when possible (adds BzrDir.open_branchV3 verb).

Show diffs side-by-side

added added

removed removed

Lines of Context:
704
704
 
705
705
    _fmt = 'Not a branch: "%(path)s"%(detail)s.'
706
706
 
707
 
    def __init__(self, path, bzrdir=None):
 
707
    def __init__(self, path, detail=None, bzrdir=None):
708
708
       import bzrlib.urlutils as urlutils
709
709
       path = urlutils.unescape_for_display(path, 'ascii')
710
 
       # remember the detail in case of remote serialization
711
 
       self.detail = None
 
710
       if detail is not None:
 
711
           detail = ': ' + detail
 
712
       self.detail = detail
712
713
       self.bzrdir = bzrdir
713
714
       PathError.__init__(self, path=path)
714
715