My father's cavalry regiment had this as a cantering tune, if I remember rightly. It is also used for the cowboy song "The Railroad Corral" (which also used "Bonnie Dundee", another cavalry canter).