mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
fix wrong mercurial changeset ids during hooks
This commit is contained in:
@@ -75,7 +75,10 @@ def appendWrappedListNodes(doc, parentNode, wrapperName, name, values):
|
||||
appendListNodes(doc, wrapperNode, name, values)
|
||||
|
||||
def getId(ctx):
|
||||
return str(ctx.rev()) + ':' + hex(ctx.node()[:6])
|
||||
id = ''
|
||||
if os.environ['SCM_ID_REVISION'] == 'true':
|
||||
id = str(ctx.rev()) + ':'
|
||||
return id + hex(ctx.node())
|
||||
|
||||
def appendAuthorNodes(doc, parentNode, ctx):
|
||||
authorName = ctx.user()
|
||||
|
||||
Reference in New Issue
Block a user