SAN FRANCISCO -- Right-hander Tim Hudson ran his home record to 4-0 with seven innings of shutout ball, pitching the San Francisco Giants to a 4-0 victory over the Chicago Cubs on Tuesday night.

Center fielder Angel Pagan scored after each of two singles, catcher Buster Posey hit two sacrifice flies, and third baseman Pablo Sandoval drove in a run for a seventh consecutive game to support Hudson (5-2) and even the three-game series at a win apiece.

Hudson, pitching into the seventh inning for the first time since straining his left hip May 11, allowed five singles and a double in his second combined shutout of the season. Only two Cubs baserunners advanced as far as second base against him.

Hudson did not walk a batter for the sixth time in his 10 starts. He struck out five while pitching the Giants to their fifth win in the last six games.

Left-hander Jeremy Affeldt and right-hander Jean Machi pitched an inning apiece to complete the Giants' third shutout of the season and first since April 29.

Cubs right-hander Jake Arrieta (1-1) surrendered two-run innings in the first and fifth. In Arrieta's six innings, six of the seven hits he allowed were singles. He walked one and struck out six.

Right-handers Blake Parker and Jose Veras pitched an inning apiece of shutout relief for the Cubs.

Chicago has alternated wins and losses in its past eight games.

Pagan, right fielder Hunter Pence and first baseman Michael Morse had two hits apiece in the Giants' nine-hit attack.

Hudson had a cushion almost from the get-go.

Pagan and Pence opened the bottom of the first inning with consecutive singles. Three batters later, they both had scored -- Pagan on Posey's first sacrifice fly and Pence on Morse's two-out single.

The Giants' two-run fifth had a similar look. Posey hit another sac fly, scoring second baseman Ehire Adrianza, and Sandoval's two-out single drove in Pagan to make it 4-0.

NOTES: Plans for the renovation of Wrigley Field were announced Tuesday in Chicago. The controversial proposal, which goes before the city landmark committee next week, includes two video boards and five raised signs in the outfield -- much of which will block to the view of rooftop owners. The $575 million project, if approved, is expected to be completed by Opening Day 2016. ... Cubs LHP Wesley Wright was placed on the paternity list Tuesday and RHP Blake Parker was recalled from Triple-A Iowa to replace him for up to three days. Parker had eight saves and a 0.77 ERA for Iowa, striking out 15 without issuing a walk. ... Giants RHP Matt Cain is scheduled to throw a bullpen session before Wednesday's series finale to test his strained right hamstring. If all goes well, he will make his scheduled start Saturday in St. Louis. ... Giants RF Hunter Pence, whose motorized scooter was stolen during a postgame meal Sunday night in San Francisco, has ordered a new, state-of-the-art scooter that he expects to arrive during the team's next homestand.