We compare deep Magellan spectroscopy of 26 groups at 0.3 =5Å) increases strongly with redshift, from ~29% in 2dFGRS to ~58% in CNOC2, for all galaxies brighter than ~ M*+1.75. This trend is parallel to the evolution of field galaxies, where the equivalent fraction of emission line galaxies increases from ~ 53% to ~ 75%. The fraction of emission-line galaxies in groups is lower than in the field, across the full redshift range, indicating that the history of star formation in groups is influenced by their environment. We show that the evolution required to explain the data is inconsistent with a quiescent model of galaxy evolution; instead, discrete events in which galaxies cease forming stars (truncation events) are required. We constrain the probability of truncation (P_trunc) and find that a high value is required in a simple evolutionary scenario neglecting galaxy mergers (P_trunc >~ 0.3 Gyr^{-1}). However, without assuming significant density evolution, P_trunc is not required to be larger in groups than in the field, suggesting that the environmental dependence of star formation was embedded at redshifts z >~ 0.45. ; Comment: 15 pages, 14 figures, accepted for publication in MNRAS