Upon the adoption of a proposition to repeal or amend an ordinance initiated by petition, the city clerk shall write upon the margin of the record of the ordinance "repealed (or amended) by ordinance No. . . . .," or "repealed (or amended) by vote of the people."