mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 07:55:47 +01:00
fix wrong element names in blame command
This commit is contained in:
@@ -45,11 +45,12 @@ def appendBlameLine(doc, parent, lineCtx, lineNumber):
|
|||||||
|
|
||||||
def appendBlameLines(doc, repo, revision, path):
|
def appendBlameLines(doc, repo, revision, path):
|
||||||
blameResult = createChildNode(doc, doc, 'blame-result')
|
blameResult = createChildNode(doc, doc, 'blame-result')
|
||||||
|
blameLines = createChildNode(doc, blameResult, 'blamelines')
|
||||||
linesCtx = repo[revision][path].annotate()
|
linesCtx = repo[revision][path].annotate()
|
||||||
lineNumber = 0
|
lineNumber = 0
|
||||||
for lineCtx in linesCtx:
|
for lineCtx in linesCtx:
|
||||||
lineNumber += 1
|
lineNumber += 1
|
||||||
appendBlameLine(doc, blameResult, lineCtx, lineNumber)
|
appendBlameLine(doc, blameLines, lineCtx, lineNumber)
|
||||||
appendTextNode(doc, blameResult, 'total', str(lineNumber))
|
appendTextNode(doc, blameResult, 'total', str(lineNumber))
|
||||||
|
|
||||||
# main method
|
# main method
|
||||||
|
|||||||
Reference in New Issue
Block a user