If we have multiple cases in a test, that leads us to a temp path of
format "<temp-path>-<case1>#<case2>".
This leads to hg.parseurl() parsing the path and take part
after # as a branch name.
I encountered this bug while adding support for share-safe case in next patch.