~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

- start introducing hct error classes

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
            new_t = t.clone('..')
113
113
            if new_t.base == t.base:
114
114
                # reached the root, whatever that may be
115
 
                raise NotBranchError('%s is not in a branch' % url)
 
115
                raise NotBranchError(path=url)
116
116
            t = new_t
117
117
 
118
118
    @staticmethod
471
471
        try:
472
472
            fmt = self.controlfile('branch-format', 'r').read()
473
473
        except NoSuchFile:
474
 
            raise NotBranchError(self.base)
 
474
            raise NotBranchError(path=self.base)
475
475
        mutter("got branch format %r", fmt)
476
476
        if fmt == BZR_BRANCH_FORMAT_6:
477
477
            self._branch_format = 6