Mercurial > hg
changeset 24090:a86b2922ea30
webcommands: document "manifest" web command
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 06 Feb 2015 21:48:01 -0800 |
parents | f17773432782 |
children | 6b6ec887c79b |
files | mercurial/hgweb/webcommands.py |
diffstat | 1 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Fri Feb 06 21:39:15 2015 -0800 +++ b/mercurial/hgweb/webcommands.py Fri Feb 06 21:48:01 2015 -0800 @@ -494,6 +494,21 @@ @webcommand('manifest') def manifest(web, req, tmpl): + """ + /manifest[/{revision}[/{path}]] + ------------------------------- + + Show information about a directory. + + If the URL path arguments are defined, information about the root + directory for the ``tip`` changeset will be shown. + + Because this handler can only show information for directories, it + is recommended to use the ``file`` handler instead, as it can handle both + directories and files. + + The ``manifest`` template will be rendered for this handler. + """ ctx = webutil.changectx(web.repo, req) path = webutil.cleanpath(web.repo, req.form.get('file', [''])[0]) mf = ctx.manifest()