Updated

Tyler Chatwood combined with three relievers on a three-hitter and the Colorado Rockies beat the San Francisco Giants 3-0 Friday night.

Wilin Rosario doubled twice and scored a run while Tyler Colvin added two hits and an RBI for Colorado.

The Rockies, swept at home by the Giants a week ago, scored all their runs off Tim Lincecum. The two-time NL Cy Young Award winner had allowed only two runs in his previous two starts.

San Francisco fell into a tie with the Los Angeles Dodgers for first place in the NL West.

Chatwood (2-2) scattered three hits over five innings in his second start this season. The right-hander, who began the season in the bullpen, had two strikeouts and two walks.

It was the third shutout by Rockies pitchers this season.

San Francisco hasn't scored in its last 14 innings at home and was shut out for the fifth time this season — sixth overall — at its waterfront ballpark.

Chatwood, making his second start in six days against the Giants, kept San Francisco's bats quiet before Colorado's bullpen blanked the Giants over the final four innings.

Adam Ottavino pitched two innings, Matt Belisle worked the eighth and Rafael Betancourt pitched a 1-2-3 ninth for his 20th save.

Lincecum (6-12) repeatedly fell behind in the count and the Rockies took advantage.

D.J. LeMahieu singled leading off the third, was sacrificed to second and scored from third on Dexter Fowler's single to left-center. Fowler tried to stretch his hit into a double but was thrown out by San Francisco center fielder Angel Pagan.

In the fourth, Rosario doubled and scored on Colvin's RBI single to make it 2-0.

Chatwood wasn't overpowering but he was effective.

The Giants got a runner to second in the third and fourth but failed to advance against the right-hander.

In the fifth, San Francisco put runners on the corners with one out but Chatwood worked out of it with some help from his teammates. Chatwood struck out Lincecum, and Rosario threw out Brandon Crawford trying to steal second on the same pitch.

Colorado's defense came up big again in the sixth.

With Melky Cabrera on first following a two-out error by third baseman Chris Nelson, LeMahieu knocked down Hunter Pence's sharp grounder up the middle and scrambled to make a one-handed flip to shortstop Josh Rutledge covering the bag.

Nelson made up for his gaffe and gave the Rockies some breathing room with a sacrifice fly in the seventh that knocked in Colvin to make it 3-0.

Colorado's pitching did the rest.

Ottavino pitched out of a two-on, one-out jam in the seventh, and San Francisco didn't manage a baserunner the rest of the way.

Lincecum, who had won his previous two starts, struck out three and walked two in seven innings.

NOTES: San Francisco 3B Pablo Sandoval (strained hamstring) played five innings during a rehab start in the minors and could rejoin the big league club by Monday, according to manager Bruce Bochy. ... Colorado 1B Todd Helton underwent surgery to repair a torn labrum in his right hip, bringing an end to a disappointing season. Helton, who turns 39 on Aug. 20, has said he plans to return for the final season of his two-year contract. ... Rockies SS Troy Tulowitzki (groin) is running without pain but isn't yet close to playing. Tulowitzki has been on the DL since May 31. ... RHP Matt Cain (10-5) tries to end his four-start winless streak for the Giants on Saturday. LHP Drew Pomeranz (1-6), whose only win this season came against San Francisco, pitches for the Rockies. ... A plaque commemorating Cain's perfect game against the Houston Astros on June 13 was placed on a walkway outside the right-field wall at AT&T Park during a pregame ceremony.