[tor-commits] [tor/release-0.2.2] Turn the loop bodies of rep_hist_save/load_state into functions