fix index updater and hg changegroup hook