I came across it in the western movie "Pale Rider", 1985. The conversation between the tin pans goes like this:
"They were counting on him to beat LaHood himself.
I reckon I did all right by you before he came. Didn't I?
Damned if that don't cut it. LaHood dammed up the creek."