It wasn't always pretty, but the San Francisco Giants swept the Pittsburgh Pirates and continued to rise in the standings.