Fixed bug in hg log command forcing wrong behaviour for hasNextCommit