mercurial/templatekw.py
changeset 26234 e4609ec959f8
parent 25984 c57509e88922
child 26434 0a823de8d7b7
equal deleted inserted replaced
26233:d3dbb65c8dc6 26234:e4609ec959f8
   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: