Make JavaHg parsing immune to Hg extensions
The parsing done by JavaHg through style files is subject to errors due to unexpected output from Hg extensions, which amounts from our point of view to some pollution of the output stream.
This pollution manifested itself as issues 531 and 508 of MercurialEclipse.