"Blackjack Davey"" is an American version of the Scottish border ballad "The Wraggle Taggle Gypsies" (Child 200).
The earliest text may be "The Gypsy Loddy", published in the Roxburghe Ballads of 1720, and Allan Ramsay's Tea-Table Miscellany of 1740, which included the ballad as "The Gypsy Johnny Faa". It was also printed in Sharp's One Hundred English Folksongs. Another American version is known as "Gypsy Davey". A modern composed version is "The Gypsy Rover". The tunes are different but the story is the same.
There have been numerous recordings of "The Wraggle Taggle Gypsies", "Gypsy Davey" and "Blackjack Davey" by Woody Guthrie, The Carter Family, Pete Seeger, Peggy Seeger, The New Lost City Ramblers, Jean Ritchie, The Chieftans and many others.
I learned "Blackjack Davey" from Pete Seeger.