Only hope in that situation, I think, is to settle, and hope a Warrior pops from the hut. Move him into the city, then hope you continue to get lucky and hold off the enemy.
I always thought the map generator was set up so that couldn't happen, though.