857
857
relpath is the portion of the path that is contained by the innermost
863
862
bzrdir, relpath = klass.open_containing(location)
865
864
tree, branch = bzrdir._get_tree_branch()
866
865
except errors.NotBranchError:
869
868
return None, None, repo, relpath
870
869
except (errors.NoRepositoryPresent):
871
870
raise errors.NotBranchError(location)