Fix hg log handling to work with with newer Mercurial version