mercurial/templatekw.py
changeset 24676 13c42a883e8b
parent 24337 696ab1a24ae0
child 24947 a02d293a1079
child 25392 ed18f4acf435
equal deleted inserted replaced
24675:47e7d5fbbf04 24676:13c42a883e8b
   331     """:latesttagdistance: Integer. Longest path to the latest tag."""
   331     """:latesttagdistance: Integer. Longest path to the latest tag."""
   332     return getlatesttags(repo, ctx, cache)[1]
   332     return getlatesttags(repo, ctx, cache)[1]
   333 
   333 
   334 def showmanifest(**args):
   334 def showmanifest(**args):
   335     repo, ctx, templ = args['repo'], args['ctx'], args['templ']
   335     repo, ctx, templ = args['repo'], args['ctx'], args['templ']
       
   336     mnode = ctx.manifestnode()
   336     args = args.copy()
   337     args = args.copy()
   337     args.update({'rev': repo.manifest.rev(ctx.changeset()[0]),
   338     args.update({'rev': repo.manifest.rev(mnode), 'node': hex(mnode)})
   338                  'node': hex(ctx.changeset()[0])})
       
   339     return templ('manifest', **args)
   339     return templ('manifest', **args)
   340 
   340 
   341 def shownode(repo, ctx, templ, **args):
   341 def shownode(repo, ctx, templ, **args):
   342     """:node: String. The changeset identification hash, as a 40 hexadecimal
   342     """:node: String. The changeset identification hash, as a 40 hexadecimal
   343     digit string.
   343     digit string.