SAN FRANCISCO (Reuters) - Hewlett-Packard Co beat revenue forecasts as sales growth in its enterprise group inspired cautious optimism about the company's turnaround plan, and its shares rallied more than 7 percent.