The superior court, on petition and notice to the county commissioners, may order any part of the expense of repairing a highway to be paid by the county, when the whole would be burdensome to the town, or when the county convention has recommended such order.