mercurial/hgweb/webcommands.py
changeset 24090 a86b2922ea30
parent 24089 f17773432782
child 24091 6b6ec887c79b
equal deleted inserted replaced
24089:f17773432782 24090:a86b2922ea30
   492     the virtual file system presented by the manifest command below."""
   492     the virtual file system presented by the manifest command below."""
   493     return path
   493     return path
   494 
   494 
   495 @webcommand('manifest')
   495 @webcommand('manifest')
   496 def manifest(web, req, tmpl):
   496 def manifest(web, req, tmpl):
       
   497     """
       
   498     /manifest[/{revision}[/{path}]]
       
   499     -------------------------------
       
   500 
       
   501     Show information about a directory.
       
   502 
       
   503     If the URL path arguments are defined, information about the root
       
   504     directory for the ``tip`` changeset will be shown.
       
   505 
       
   506     Because this handler can only show information for directories, it
       
   507     is recommended to use the ``file`` handler instead, as it can handle both
       
   508     directories and files.
       
   509 
       
   510     The ``manifest`` template will be rendered for this handler.
       
   511     """
   497     ctx = webutil.changectx(web.repo, req)
   512     ctx = webutil.changectx(web.repo, req)
   498     path = webutil.cleanpath(web.repo, req.form.get('file', [''])[0])
   513     path = webutil.cleanpath(web.repo, req.form.get('file', [''])[0])
   499     mf = ctx.manifest()
   514     mf = ctx.manifest()
   500     node = ctx.node()
   515     node = ctx.node()
   501 
   516