The phrase also turns up in a song "The Unfortunate Tailor", sung on John Peel's programme once by guest Martin Carthy. I'm not sure that he ever recorded it, but if he did, I'm sure someone here will know.
I'd always assumed it meant something like "I'll bang your head".