The clerk of the county shall immediately serve a copy of such revocation upon the sheriff thereof, whose duty it shall be to remove the prisoners belonging to his custody, and so confined without his county, to his proper jail, and if any prisoners shall have been admitted to the liberties of the jail, in such other county, they shall also be removed, and shall be entitled to the liberties of the jail of the county to which they shall be removed, in the same manner as if they had been originally arrested in such county.