Add better support of Mercurial

Merged Johann Dreo requested to merge github/fork/LeStef/master into master

Created by: LeStef

This is a modest first contribution. Please let me know if you haev something to say about that piece of modification for Mercurial.

Merge request reports