~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-01-15 05:43:42 UTC
  • mfrom: (4734.4.13 bug-440952-bzrdir)
  • Revision ID: pqm@pqm.ubuntu.com-20100115054342-o6ar5y4ch9tcnzyi
(andrew) Give 'location is a repository' hint for NotBranchError
        (#440952).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1441
1441
            format_string = transport.get_bytes("format")
1442
1442
            return klass._formats[format_string]
1443
1443
        except errors.NoSuchFile:
1444
 
            raise errors.NotBranchError(path=transport.base)
 
1444
            raise errors.NotBranchError(path=transport.base, bzrdir=a_bzrdir)
1445
1445
        except KeyError:
1446
1446
            raise errors.UnknownFormatError(format=format_string, kind='branch')
1447
1447
 
1796
1796
                              _repository=a_bzrdir.find_repository(),
1797
1797
                              ignore_fallbacks=ignore_fallbacks)
1798
1798
        except errors.NoSuchFile:
1799
 
            raise errors.NotBranchError(path=transport.base)
 
1799
            raise errors.NotBranchError(path=transport.base, bzrdir=a_bzrdir)
1800
1800
 
1801
1801
    def __init__(self):
1802
1802
        super(BranchFormatMetadir, self).__init__()