Importing an empty HgWeb repository causes lockup
Created by: Intuity
When running an import using SourceHgWeb, if it runs on an empty Hg repository it would lockup and PHP CPU usage hits 100%. This is because the '#HG changeset patch' string is never found, and the script just locks in a while loop.