His right eye red from a celebratory postgame beer/shaving cream shower, reliever Evan Marshall reached into his locker toward a cellphone that wouldn't stop buzzing with congratulatory text messages.

Marshall, fresh from Triple-A Reno, retired all four batters he faced in his major-league debut on Tuesday night, and Aaron Hill's tie-breaking home run in the eighth inning made the rookie the winning pitcher in the Diamondbacks' 7-5 come-from-behind win over the Milwaukee Brewers.

Like most of the Diamondbacks' wins this season, this was an exercise in imperfection. They coughed up five runs in the first inning on a combination of lousy throws, bad reads and poor pitches, and looked to be en route to another of the lopsided losses that have plagued them.

But instead the scene in the visitors' clubhouse at Miller Park was jubilant, with a birthday-celebrating Gerardo Parra covered, for some reason, in baby powder, and Marshall and fellow rookie Chris Owings, who hit his first career homer, having been doused in all sorts of liquids, oils and creams.

"This is a mixture of beer and shaving cream," Marshall said. "It's a rite of passage. So I'm told."

Right-hander Josh Collmenter, who was charged with only one earned run in the five-run first, managed to settle down and pitch into the sixth inning, once again faring well against Brewers, against whom he has a career 1.30 ERA.

In snapping a two-game losing skid and winning for the third time in five games on this road trip — odd fact: the Diamondbacks, who are 12-24 overall, are a .500 team (9-9) on the road — the rookies figured prominently.

Start with Owings. After Paul Goldschmidt's two-run homer gave them an early lead in the top of the first, the Diamondbacks were on the verge of escaping a jam relatively unscathed when Owings bounced a throw to first base on a routine ground ball by Khris Davis. Goldschmidt couldn't dig it out, a run scored, and the Brewers added three more when Jean Segura and Logan Schafer followed with consecutive run-scoring hits.

"Early in my career, I probably would have let that hang over me the whole game," Owings said.