We are still not allowed to have dashes inside version. Fix for mercurial.

Add unittest for versionformat YYYYMMDD
Merge pull request #7 from matwey/master

Fix dashes in version for mercurial.