1023
1023
sub_path = self.id2path(file_id)
1024
1024
branch_transport = mkdirs(sub_path)
1027
1027
branch_transport.ensure_base()
1028
1028
branch_bzrdir = format.initialize_on_transport(branch_transport)
1030
1030
repo = branch_bzrdir.find_repository()
1031
1031
except errors.NoRepositoryPresent:
1032
1032
repo = branch_bzrdir.create_repository()
1037
1035
new_branch = branch_bzrdir.create_branch()
1038
1036
new_branch.pull(self.branch)
1039
1037
for parent_id in self.get_parent_ids():