ARLINGTON, Texas - Rangers leadoff hitter Delino DeShields flipped his bat away in frustration after an inning-ending popup.

Then he realized he was caught in the middle of shouting between San Francisco Giants starter Madison Bumgarner and Texas teammate Adrian Beltre. Almost as quickly, the benches and bullpens cleared and players from both teams were facing off in the infield.

"I was mad that I missed the pitch. ... I didn't really get it," DeShields said after the Rangers' 6-3 victory Friday night. "That was weird. I think he may have been a little frustrated, too."

Bumgarner (11-6) gave up homers to Elvis Andrus and Adrian Beltre in the first two innings when Texas scored all its runs in the Giants' first visit since clinching the 2010 World Series in Texas.

Only moments after newly acquired Cole Hamels appeared in the Rangers dugout wearing his No. 35 uniform for the first time, shaking hands with new teammates, both benches and bullpens were clearing.

"Yeah, that's some serious excitement," Hamels, who makes his Rangers debut Saturday night, said with a smile. "Just to be welcomed with them and then to join them."

Earlier in the fourth, Rougned Odor had a bunt single before a hard slide into fellow second baseman Joe Panik to break up a potential double play.

Bumgarner looked directly at the Rangers bench and shouted something as he left the mound.

"I think it was pretty self-explanatory, don't you?," Bumgarner said, without elaborating on what happened.

"(Bumgarner) was a little grumpy anyway because of the heat and the way the game was going," manager Bruce Bochy said. "That was his boiling point. He settled down, and that's over. Those things happen."

There were no ejections, punches thrown or contact made between players, who were kept separated by the umpires.

"In the beginning, it was Odour, for the bunt. Then Delino's was, you know, (Bumgarner) kind of got a little excited when he made that pitch," Andrus said. "I don't get it. He likes to intimidate. I don't know if he intimidates doing that."

Andrus hit a two-run homer in the second to put the Rangers up 6-2. He doubled in the first, scoring then on Beltre's homer lined over the 14-foot wall in left field.

Nick Martinez (6-6) won for the first time since June 9 — seven starts — allowing two runs with four strikeouts in 6 1-3 innings.

Texas has won three in a row since a 21-5 loss Tuesday night against the New York Yankees after leading 5-0 in the first inning.

Brandon Crawford hit his 16th homer for the Giants, who lost for only the third time their last 16 games.

In the top of the fifth, Panik made a hard slide into second, but Odor was able to sidestep and complete the inning-ending double play without incident.

Two weeks ago, Texas had a similar melee in Houston after Odour, who had homered earlier in that game, got into a testy exchange with Astros catcher Hank Conger while getting ready to bat to start the ninth.

Bumgarner matched a season high by allowing six runs, but none after the second. He struck out eight over seven innings.

"I'm glad Madison didn't throw like that in that ballgame," Bochy said, referring to the Game 4 of the 2010 World Series, the only other time Bumgarner has pitched at Texas.

The big lefty threw eight scoreless innings that Halloween night, allowing only three hits in a 4-0 win. The next night, the Giants clinched their first of three titles over the past five seasons.

THE OTHER LEFTY

While Hamels makes his Rangers debut Saturday night, reliever Jake Diekman — the other pitcher Texas got from Philadelphia in an eight-player trade completed earlier Friday — retired all five batters he faced in the series opener. "That's what we got him for," Banister said. "He let us know he was available and ready to pitch. ... You saw the power of the fastball, and you also saw the breaking ball."

TRAINER'S ROOM

Giants: RHP Tim Hudson was put on the 15-day disabled list with a shoulder strain. ... C Andrew Susac (sprained right thumb) is eligible to come off the DL Monday. He resumed throwing Friday.

UP NEXT

Giants: Chris Heston (11-5), who has won his last three starts, moves up a day to pitch in place of scheduled starter Hudson.

Rangers: Hamels is 6-4 with a 4.21 ERA in 15 career starts for the Phillies against the Giants. He faced them July 10 in San Francisco, allowing nine runs and 12 hits in 3 1-3 innings.