SAN FRANCISCO, CA - JULY 29: Jeremy Affeldt #41 of the San Francisco Giants pitches in the eighth inning against the Los Angeles Dodgers at AT&T Park on July 29, 2012 in San Francisco, California. (Photo by Thearon W. Henderson/Getty Images)

Photo: Thearon W. Henderson, Getty Images

SAN FRANCISCO, CA - JULY 29: Jeremy Affeldt #41 of the San...

Image 2 of 15

Los Angeles Dodgers starting pitcher Clayton Kershaw, right, is congratulated by teammate Jamey Wright (28) after a 4-0 victory against the San Francisco Giants in a baseball game in San Francisco, Sunday, July 29, 2012. (AP Photo/Tony Avelar)

Photo: Tony Avelar, Associated Press

Los Angeles Dodgers starting pitcher Clayton Kershaw, right, is...

Image 3 of 15

SAN FRANCISCO, CA - JULY 29: Hanley Ramirez #13 of the Los Angeles Dodgers has the ball kick off the heal of his glove and go for a base hit off the bat of Buster Posey #28 of the San Francisco Giants (not pictured) in the ninth inning at AT&T Park on July 29, 2012 in San Francisco, California. The Dodgers won the game 4-0. (Photo by Thearon W. Henderson/Getty Images)

Photo: Thearon W. Henderson, Getty Images

SAN FRANCISCO, CA - JULY 29: Hanley Ramirez #13 of the Los Angeles...

Image 4 of 15

Los Angeles Dodgers' Andre Ethier (16) hits a double against the San Francisco Giants during the ninth inning of a baseball game in San Francisco, Sunday, July 29, 2012. The Dodgers won 4-0. (AP Photo/Tony Avelar)

Photo: Tony Avelar, Associated Press

Los Angeles Dodgers' Andre Ethier (16) hits a double against the...

Image 5 of 15

Los Angeles Dodgers' Juan Rivera (21) scores past San Francisco Giants catcher Buster Posey (28) during the fourth inning of a baseball game in San Francisco, Sunday, July 29, 2012. Rivera scored on a single by Hanley Ramirez. (AP Photo/Tony Avelar)

Photo: Tony Avelar, Associated Press

Los Angeles Dodgers' Juan Rivera (21) scores past San Francisco...

Image 6 of 15

San Francisco Giants center fielder Angel Pagan (16) cannot make the catch on a double by Los Angeles Dodgers' Andre Ethier during the ninth inning of a baseball game in San Francisco, Sunday, July 29, 2012. The Dodgers defeated the Giants 4-0.(AP Photo/Tony Avelar)

Photo: Tony Avelar, Associated Press

San Francisco Giants center fielder Angel Pagan (16) cannot make...

Image 7 of 15

SAN FRANCISCO, CA - JULY 29: Matt Kemp #27 of the Los Angeles Dodgers breaks up the double-play sliding hard into Ryan Theriot #5 of the San Francisco Giants in the fourth inning at AT&T Park on July 29, 2012 in San Francisco, California. Juan Rivera #21 (not pictured) scored on the play. (Photo by Thearon W. Henderson/Getty Images)

Photo: Thearon W. Henderson, Getty Images

SAN FRANCISCO, CA - JULY 29: Matt Kemp #27 of the Los Angeles...

Image 8 of 15

SAN FRANCISCO, CA - JULY 29: Marco Scutaro #19 of the San Francisco Giants commits an error dropping this pop-up off the bat of James Loney #7 of the Los Angeles Dodgers (not pictured) in the fourth inning at AT&T Park on July 29, 2012 in San Francisco, California. (Photo by Thearon W. Henderson/Getty Images)

Photo: Thearon W. Henderson, Getty Images

SAN FRANCISCO, CA - JULY 29: Marco Scutaro #19 of the San Francisco...

Image 9 of 15

SAN FRANCISCO, CA - JULY 29: Hanley Ramirez #13 of the Los Angeles Dodgers gets congratulated by teammates after he scored on an RBI double from Luis Cruz #47 (not pictured) in the fourth inning against the San Francisco Giants at AT&T Park on July 29, 2012 in San Francisco, California. (Photo by Thearon W. Henderson/Getty Images)

Photo: Thearon W. Henderson, Getty Images

SAN FRANCISCO, CA - JULY 29: Hanley Ramirez #13 of the Los Angeles...

Image 10 of 15

SAN FRANCISCO, CA - JULY 29: Clayton Kershaw #22 of the Los Angeles Dodgers reacts to striking out with the bases loaded in the six inning against the San Francisco Giants at AT&T Park on July 29, 2012 in San Francisco, California. (Photo by Thearon W. Henderson/Getty Images)

Photo: Thearon W. Henderson, Getty Images

SAN FRANCISCO, CA - JULY 29: Clayton Kershaw #22 of the Los Angeles...

Image 11 of 15

San Francisco Giants third baseman Marco Scutaro (19) drops a fly ball as Los Angeles Dodgers' Hanley Ramirez (13) advances to third base during the fourth inning of a baseball game in San Francisco, Sunday, July 29, 2012. (AP Photo/Tony Avelar)

Photo: Tony Avelar, Associated Press

San Francisco Giants third baseman Marco Scutaro (19) drops a fly...

Image 12 of 15

Los Angeles Dodgers' Hanley Ramirez reacts after scoring during the fourth inning of a baseball game against the in San Francisco, Sunday, July 29, 2012. (AP Photo/Tony Avelar)

Los Angeles Dodgers starting pitcher Clayton Kershaw delivers against the San Francisco Giants during the first inning of a baseball game in San Francisco, Sunday, July 29, 2012. (AP Photo/Tony Avelar)

Photo: Tony Avelar, Associated Press

Los Angeles Dodgers starting pitcher Clayton Kershaw delivers...

Image 14 of 15

SAN FRANCISCO, CA - JULY 29: Mark Ellis #14 of the Los Angeles Dodgers hits an RBI single driving in Luis Cruz #47 (not pictured) in the eighth inning against the San Francisco Giants at AT&T Park on July 29, 2012 in San Francisco, California. (Photo by Thearon W. Henderson/Getty Images)

The Dodgers-Giants fight for National League West supremacy this season has been quite the tennis match.

Los Angeles bolted to a 7 1/2-game lead by May 27. San Francisco roared back to catch and pass the Dodgers, mostly during Matt Kemp's absence. Now the teams are virtually tied for first place after the Dodgers invaded AT&T Park and took no prisoners in a sweep that ended with Sunday's 4-0 win.

With Hanley Ramirez giving his new team a jolt of electricity and the Dodgers throwing consecutive shutouts in San Francisco for the first time, a neutral observer must conclude that they are now the team to beat.

Giants players are not neutral observers, of course.

When Angel Pagan was asked about the Giants' frustration level, he replied, "Why frustration? We just lost three games. We're still tied for first place. There are a lot of ballgames left. We've got to turn the page, then just play with a better attitude, I guess."

Pagan is right. Two months is a lot of baseball to play and momentum can be fickle, as this year's division race has shown.

However, the Dodgers have to feel good about their chances now that they are winning, have a big new bat and know their new owners still have money burning holes in their pockets as Tuesday's trade deadline approaches.

On the other side, Giants general manager Brian Sabean is trying to lower expectations of a move as significant as the Ramirez deal, partly because of the paucity of available hitters, partly because he has little payroll wiggle room. Instead, he is trying to fill holes incrementally.

Word spread Sunday that Seattle had a deal to move deposed closer Brandon League, who still has good stuff. A major-league source told The Chronicle he believed the Giants were the team that got him - but nothing happened. League pitched for the Mariners and allowed three runs in one-third of an inning against Kansas City.

Players can be tempted this time of year to expect management to save them with trades, but manager Bruce Bochy said, "We're a club that doesn't get concerned about other teams. I don't think they think like that. They shouldn't."

Indeed, the greater concern is getting the hitters who already wear a Giants uniform to start producing, which has become more difficult with Pablo Sandoval on the disabled list.

Their scoreless streak stands at 20 innings after Clayton Kershaw rebounded from an eight-run disaster in St. Louis and fired his second shutout of the season. The Giants had five singles and did not get a man to third base.

"Unfortunately in this game, you're going to get it handed to you sometimes," Bochy said. "You're going to go through these things. I don't care what team you are. The Dodgers pitched well and played great, just the opposite of what happened last time."

"Last time" was the Dodgers' visit in June, when the Giants threw three consecutive shutouts in a series sweep, a forehand smash that L.A. returned with equal force over the weekend. The Giants' task as they left the ballpark Sunday was to forget the entire thing.

"It's not that hard because you've got to play again tomorrow," losing pitcher Ryan Vogelsong said. "If anything, you hope it makes you a little mad and you take it out on the Mets coming in here. That's what I hope it does."