PITTSBURGH -- Jeff Locke was far from overpowering, but he was good enough to make some history Wednesday night.
The left-hander set a Pirates record for most consecutive starts in a single season without a loss, pitching National League Central-leading Pittsburgh to a 6-5 victory over the Philadelphia Phillies at PNC Park.
Locke (8-1) has gone 16 starts since suffering his lone defeat of the season April 7 against the Dodgers at Los Angeles. The record was set by Dock Ellis in 1971.
Locke also has the longest active winning streak in the NL with his eight victories in a row. That is the longest streak by a Pirates left-hander since John Candelaria won eight straight in 1983.
Locke gave up three runs (two earned) and seven hits in 5 2/3 innings Wednesday. He walked three and struck out two.
Jason Grilli recorded his 28th save in 29 opportunities, but it wasn't without a scare.
Domonic Brown hit a two-run home run deep into the right field stands with two outs in the ninth inning, his team-best 22nd, to draw the Phillies within 6-5. However, Grilli then struck out Delmon Young to end the game.
Justin Wilson, Jeanmar Gomez, Mark Melancon and Jason Grilli combined for 3 1/3 shutout innings of relief.
The Pirates won for the 10th time in 11 games and improved their best-in-the-majors record to 52-31.
Philadelphia's John Lannan (1-3) allowed four runs and 11 hits in five innings. He walked three walks and struck out five while falling to 1-5 in 10 career starts against the Pirates.
Pedro Alvarez hit a tiebreaking three-run home run in the fifth inning off Lannan, his team-leading 21st of the season, to put the Pirates ahead for good, 4-1.
Andrew McCutchen went 3-for-3 and raised his batting average at PNC Park this season to .356 (55-for-163). Russell Martin added two hits and two RBIs, and Starling Marte extended his hitting streak to eight games.
Young continued a big road trip with three hits, including the 1,000th of his career when he singled in the fourth inning off Locke. Young is 15-for-30 (.500) in the first nine games of the 10-game trip that ends Thursday when the Phillies, after splitting the first two games, will try to win their first series in Pittsburgh since 2008.
Brown also had three hits.
After Alvarez put the Pirates ahead, the Phillies (40-45) closed to 4-3 by scoring two runs and chasing Locke in the sixth inning. Pinch hitter Kevin Frandsen hit an RBI single, and the second run scored on shortstop Jordy Mercer's error.
The Pirates restored the three-run cushion in the bottom of the sixth when McCutchen tripled and scored on a double by Martin. The other run came home on a wild pitch by Jake Diekman, who struck out all five batters he faced.
NOTES: The Pirates activated OF Jose Tabata from the 15-day disabled list before the game and optioned RHP Brandon Cumpton to Triple-A Indianapolis. Pirates manager Clint Hurdle said Tabata would be given a chance to win the right field job outright after platooning with OF Travis Snider prior to going on the DL on May 25. ... Pittsburgh RHP A.J. Burnett (strained right calf) believes he is ready to come off the disabled list and pitch this weekend against the Cubs in Chicago after getting through a three-inning simulated game Tuesday without difficulty. ... Phillies 1B Ryan Howard was not in the starting lineup against the lefty, and John Mayberry Jr. started in his place. Howard has just a .509 OPS against lefties this season and also felt knee soreness after Tuesday's game. He struck out as a pinch hitter Wednesday. ... Philadelphia LHP Cole Hamels (2-11 4.58) faces RHP Gerrit Cole (4-0, 3.70) on Thursday.