Drop compatibility hacks for unsupported versions of Mercurial
I went through the code and removed all compatibility hacks referring to versions prior to 4.3, the currently supported version. This is done as a single commit, relying on the test suite to catch any mistakes.