--- 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()