I've known this for so long the origin of where I learnt it is lost in the mists of time, although I got a lot of music from my first tunebook, Kerr's Merry Melodies. The tune also appears as the air to a song, Queen Mary's Escape from Lochleven Castle. Harmony and arrangement by me.