Judy, (Wee wee Graman Lairdie)
James Hogg in Jacobite Relics really says little of its history, beyond that three lines of his version of the song were from an older collection than Remains of Nithsdale and Galloway Songs.It's Scots, so this is really a question for Murray S., but he might not find it under this thread title.