Fix offline bug in HG and SVN source.