Diesel locomotive Calabro Lucane in southern Italy in 1926, following trials in 1924-5. In 1924, two diesel–electric locomotives were taken in service by the Soviet railways, almost at one time: In 1935, Krauss-Maffei, MAN and Voith built the first diesel–hydraulic locomotive, called V 140, in Germany. The German railways (DRG) being very pleased with the performance of that engine, diesel–hydraulics became the mainstream in diesel locomotives in Germany. Serial production of diesel locomotives in Germany began after World War II. In many railway stations and industrial compounds, steam shunters had to be kept hot during lots of breaks between scattered short tasks.
Diesel locomotive accounted for 25% of the initial purchase price. Spare parts were cast from wooden masters for specific locomotives. The sheer number of unique steam locomotives meant that there was no feasible way for spare-part inventories to be maintained. With diesel locomotives spare parts could be mass-produced and held in stock ready for use and many parts and sub-assemblies could be standardized across an operator's fleet using different models of locomotive from the same builder. Modern diesel locomotives are designed to allow the power assemblies the be replaced, which greatly reduces the time that a locomotive is out of revenue-generating service