29
29
class SmartServerBranchRequest(SmartServerRequest):
32
33
def do(self, path, *args):
33
34
"""Execute a request for a branch at path.
35
38
If the branch is a branch reference, NotBranchError is raised.
38
45
bzrdir = BzrDir.open_from_transport(transport)
39
46
if bzrdir.get_branch_reference() is not None:
40
47
raise errors.NotBranchError(transport.base)