Rosemary Lane "is an English folksong: a ballad ( Roud #269, Laws K43) that tells a story about the seduction of a domestic servant by a sailor. According to Roud and Bishop[1]
"An extremely widespread song, in Britain and America. Its potential for bawdry means that it was popular in male-centred contexts such as rugby clubs, army barracks and particularly in the navy, where it can still be heard, but traditional versions were often collected from women as well as men."
An adaptation of the song is known as "Bell Bottom Trousers".