During autoCloseChanges if any commit is matched a ReplaceRequest will be created to handle updating the change and closing it. The class constructor uses refsByChange to build its revisions map. Reusing refsByChange allows the ref space to be scanned once and be pre-filtered for valid PatchSet refs. Change-Id: I64262bb014376b6583d6197e3bc594d26c54562e