A breathtaking analysis of twelve centuries of warfare.