Get https://mercurial.selenic.com/release/mercurial-3.4.tar.gz
use this hg instead of your common working hg (seems to be 3.1.2 on travis ubuntu and on jessie)
run junit tests - they will break on renamed files, history won't contain proper log entries, since hg 3.4 doesn't give you proper output anymore