I know no more than Alison about early copies of the song. Tune for TTM copy is in A. Stuart's Music (for TTM), c 1726. Tune earlier appeared in the Skene MS as "I serve a worthy lad[d]y" and as 'A Scotch tune' in Apollo's Banquet, 1670.