fix wrong mercurial changeset ids during hooks

This commit is contained in:
Sebastian Sdorra
2012-10-17 12:17:37 +02:00
parent 79501ec5fc
commit 8552b564f1
2 changed files with 30 additions and 19 deletions

View File

@@ -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()