equal
deleted
inserted
replaced
407 |
407 |
408 def showrev(repo, ctx, templ, **args): |
408 def showrev(repo, ctx, templ, **args): |
409 """:rev: Integer. The repository-local changeset revision number.""" |
409 """:rev: Integer. The repository-local changeset revision number.""" |
410 return scmutil.intrev(ctx.rev()) |
410 return scmutil.intrev(ctx.rev()) |
411 |
411 |
|
412 def showrevslist(name, revs, **args): |
|
413 """helper to generate a list of revisions in which a mapped template will |
|
414 be evaluated""" |
|
415 repo = args['ctx'].repo() |
|
416 f = _showlist(name, revs, **args) |
|
417 return _hybrid(f, revs, |
|
418 lambda x: {name: x, 'ctx': repo[x], 'revcache': {}}) |
|
419 |
412 def showsubrepos(**args): |
420 def showsubrepos(**args): |
413 """:subrepos: List of strings. Updated subrepositories in the changeset.""" |
421 """:subrepos: List of strings. Updated subrepositories in the changeset.""" |
414 ctx = args['ctx'] |
422 ctx = args['ctx'] |
415 substate = ctx.substate |
423 substate = ctx.substate |
416 if not substate: |
424 if not substate: |