mercurial now switches branches (with check for uncomitted changes so it's safe). Added tests for mercurial.
fixed unsetting PYTHONPATH for hg checkout in case of switch
Add changelog entry.