allow history initialisation to be overridden GitOrigin-RevId: e38c2147f7d335d368579ca53033d08906eb287b