A Town Called Mercy

The Doctor gets a stetson (and a gun!) and finds himself the reluctant marshal of a Western town under siege by a relentless cyborg.