Doerflinger writes:

Usually heard at the capstan was a perennial favorite sung by Captain James P. Barker as a walkaway shanty. It was so used in a Liverpool bark in which he served as a brassbound apprentice, the men singing it in chorus throughout when hauling away the main brace. This traditional Highland march was popular with both Yankee and British shantymen.

He goes on to give Charles Nordhoff's version published in Nine Years a Sailor. Many Scottish ships were involved in loading lumber at Quebec and along New Bunswick's Miramichi River.