The county courts of all the counties affected by the formation of the new county, or by a change in county boundaries, shall immediately after such segregations, redistrict their county into districts provided for by law, and shall fill the vacancies occasioned by such segregation in the manner provided for by law for filling vacancies.