mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
use short node instead of revision number
This commit is contained in:
@@ -40,6 +40,7 @@ if len(pythonPath) > 0:
|
|||||||
|
|
||||||
|
|
||||||
from mercurial import hg, ui, commands
|
from mercurial import hg, ui, commands
|
||||||
|
from mercurial.node import hex
|
||||||
from xml.sax.saxutils import escape
|
from xml.sax.saxutils import escape
|
||||||
import datetime, time
|
import datetime, time
|
||||||
|
|
||||||
@@ -73,8 +74,7 @@ for line in lines:
|
|||||||
c += 1
|
c += 1
|
||||||
print ' <blameline>'
|
print ' <blameline>'
|
||||||
print ' <lineNumber>' + str(c) + '</lineNumber>'
|
print ' <lineNumber>' + str(c) + '</lineNumber>'
|
||||||
# get revision id not the number
|
print ' <revision>' + hex(ctx.node()[:6]) + '</revision>'
|
||||||
print ' <revision>' + str(ctx.rev()) + '</revision>'
|
|
||||||
print ' <when>' + str(time).split('.')[0] + '</when>'
|
print ' <when>' + str(time).split('.')[0] + '</when>'
|
||||||
if authorName:
|
if authorName:
|
||||||
print ' <author>'
|
print ' <author>'
|
||||||
|
|||||||
Reference in New Issue
Block a user