The Colorado right-hander, who lost for the first time in more than three months, became a footnote to history with his two-out double in the third inning as San Francisco won its third consecutive game against the Rockies, 4-1 on Thursday afternoon.

Lyles (6-2) gave the Rockies a quality start. But he left the game grumbling about too many walks and too many pitches.

“I fell behind too many batters and left one pitch over the plate to (Gregor) Blanco,” Lyles said. “The walks in the sixth, I shouldn’t put myself in that position.”

His double ended Yusmeiro Petit’s major-league record of retiring 46 hitters in succession. And it extended the Rockies’ string of games with at least one extra-base hit to 22.

Lyles took his time getting into the batter’s box as the large crowd at AT&T Park rose to give Petit a standing ovation after Petit struck out Charlie Culberson to establish the record.

“I stepped out for him,” Lyles said. “A major-league record, it’s pretty cool. He deserved the time for fans to recognize it. When I got back in there, he threw me a cutter on the first pitch, and I was looking for a cutter, or a fastball, over the plate. That will definitely be a trivia answer someday.”

Leadoff man Charlie Blackmon drove in Lyles with a single to left. That was Colorado’s only run.

Rockies catcher Jackson Williams established a couple of major- league firsts, starting his first game and recording his first hit, a single up the middle in the fifth. He also was part of Petit’s history.

“It was good working with Jackson for the first time,” Lyles said. “It was great to see him get his first hit.”

Rockies manager Walt Weiss also liked what he saw of Williams.

“That was a real nice start,” Weiss said. “He was able to slow the game down and worked well with Jordan. He had a lot of poise about him. There’s a lot to like about him.”

Lyles suffered his first loss since May 17, a span that included two months on the disabled list because of a fractured left hand. He pitched six innings, giving up three runs and four hits. He walked three and struck out five.

Lyles pitched effectively, with the exception of Blanco’s two-run homer in the second inning, until losing command in the sixth. Even then, he nearly escaped unscathed.

The home run allowed was Lyles’ fourth over his past five starts. He allowed just five over his first 12 starts.

Petit (4-3) started in place of Tim Lincecum. He gave up a run on four hits, striking out nine and not walking a batter.

Matt Belisle, who started the seventh for the Rockies, had a streak of 12 consecutive hitters retired stopped when Angel Pagan beat out an infield single with two outs. Miami’s Christian Yelich, who walked, had been the last hitter to reach against Belisle — in the seventh inning of Colorado’s Aug. 22 game against the Marlins.

Looking ahead

In his first start since missing 50 games because of a broken hand, Bergman last week got his first major-league victory. It wasn’t the most impressive outing — nine hits, four runs, two walks and one strikeout against the Miami Marlins — but the rookie helped keep the Rockies ahead through 6 ? innings. The scouting report on Bergman is he works with poise. With some improved command of the strike zone, he could make a rotation claim for next season.

More in Sports

Shortly before the season began, Holmes, who had been dealing with a nagging hip since September, finally went in to get an X-ray to get the injury addressed. That X-ray revealed a mass on his hip, and following a biopsy, doctors diagnosed Holmes with Osteosarcoma.

That’s the inside-joke Twitter avatar of the Broncos’ newest running back, with a photo of him in a state trooper uniform. off the NFL’s waiver wire to replace the injured Kapri Bibbs and he arrived at Dove Valley with, as Gary Kubiak said, “a lot of juice.” Forsett, 31, in his ninth NFL season, , even if he’s never played...

The defending champion Raiders are ranked No. 1 in every preseason poll, return a host of key contributors as highlighted by senior center Kyle Nelson, junior winger Connor Kilkenny and senior defenseman Cade Alcock, and appear primed to make a push for the program’s fifth title.