Apparel company Levi Strauss & Co reversed the losses of a year ago in posting a profit for the second quarter, thanks to a double-digit surge in revenues.