We study a junction between two time-reversal-invariant topological superconductors and show this system goes through a series of multiple transitions between a 0-junction phase, where the free energy has its minimum for a superconducting phase difference of zero, and a π-junction phase, where the free energy has its minimum for a superconducting phase difference of π. These transitions occur in the absence of Coulomb blockade or magnetic impurities. Rather, they are driven by the spin-orbit coupling in the junction, and can be probed, for example, by measuring the tunneling density of states or the critical current as a function of the junction's length or its Fermi velocity.