It seems to be a variant of a song which was adapted in Edinburgh to refer to the visit of George IV in 1822 (from my "Embro, Embro" pages):
The King's Arrival
So it predates the Civil War by at least 40 years (and probably decades more than that).