You can see the music in R A Smith's Scottish Minstrel Vol IV, second edition, page 89.
The song is listed as the Braes o' Balquhither but the tune is listed as Three Carls o' Buchanan.
It's exactly the same as my 1810 copy. The 'old soldier song' is derived from this.