def populate_backing_repo(self, repo: hgrepo.HgRepository) -> None: repo.write_file("dir/file1", "one") repo.write_file("dir/file2", "two") self.commit1 = repo.commit("Initial commit.") repo.remove_file("dir/file1") self.commit2 = repo.commit("Remove file1") repo.write_file("dir/file3", "three") self.commit3 = repo.commit("Add file3") repo.update(self.commit1) repo.write_file("dir/file2", "new two") self.commit4 = repo.commit("Change file2")
def populate_backing_repo(self, repo: hgrepo.HgRepository) -> None: repo.write_file("dir/file1", "one") repo.write_file("dir/file2", "two") self.commit1 = repo.commit("Initial commit.") repo.remove_file("dir/file1") # pyre-fixme[16]: `UpdateCacheInvalidationTest` has no attribute `commit2`. self.commit2 = repo.commit("Remove file1") repo.write_file("dir/file3", "three") # pyre-fixme[16]: `UpdateCacheInvalidationTest` has no attribute `commit3`. self.commit3 = repo.commit("Add file3") repo.update(self.commit1) repo.write_file("dir/file2", "new two") # pyre-fixme[16]: `UpdateCacheInvalidationTest` has no attribute `commit4`. self.commit4 = repo.commit("Change file2")