Madison Bumgarner was sailing along until Clint Barmes connected for a three-run home run that put the Pirates ahead for good.