"When Hardy comes to Hardy"

"When Hardy comes to Hardy" which I understand to have the same meaning as " when push comes to shove ". Can anyone advise as to the origin of this phrase ?