diff --git a/scm-plugins/scm-hg-plugin/src/main/resources/sonia/scm/hgblame.py b/scm-plugins/scm-hg-plugin/src/main/resources/sonia/scm/hgblame.py index 853c2e6dca..193a00a173 100644 --- a/scm-plugins/scm-hg-plugin/src/main/resources/sonia/scm/hgblame.py +++ b/scm-plugins/scm-hg-plugin/src/main/resources/sonia/scm/hgblame.py @@ -40,6 +40,7 @@ if len(pythonPath) > 0: from mercurial import hg, ui, commands +from mercurial.node import hex from xml.sax.saxutils import escape import datetime, time @@ -73,8 +74,7 @@ for line in lines: c += 1 print ' ' print ' ' + str(c) + '' - # get revision id not the number - print ' ' + str(ctx.rev()) + '' + print ' ' + hex(ctx.node()[:6]) + '' print ' ' + str(time).split('.')[0] + '' if authorName: print ' '