Mercurial now checks if working copy is ahead of remote branch.
Fix string handling to work on Python 3 as well.
Merge pull request #132 from rafaelbco/master

Mercurial now checks if working copy is ahead of remote branch.