Patchwork [16,of,22,hgweb-help] webcommands: document "summary" web command

login
register
mail settings
Submitter Gregory Szorc
Date Feb. 7, 2015, 7:15 a.m.
Message ID <466e6f7c2a429eccdf6f.1423293354@gps-mbp.local>
Download mbox | patch
Permalink /patch/7754/
State Accepted
Headers show

Comments

Gregory Szorc - Feb. 7, 2015, 7:15 a.m.
# HG changeset patch
# User Gregory Szorc <gregory.szorc@gmail.com>
# Date 1423288312 28800
#      Fri Feb 06 21:51:52 2015 -0800
# Node ID 466e6f7c2a429eccdf6fb1eb0d1b8dcb50ff881e
# Parent  88f6e14c90ff0e9b358baf40bd43de8d4da81374
webcommands: document "summary" web command

Patch

diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py
+++ b/mercurial/hgweb/webcommands.py
@@ -702,8 +702,19 @@  def branches(web, req, tmpl):
                 latestentry=lambda **x: entries(1, **x))
 
 @webcommand('summary')
 def summary(web, req, tmpl):
+    """
+    /summary
+    --------
+
+    Show a summary of repository state.
+
+    Information about the latest changesets, bookmarks, tags, and branches
+    is captured by this handler.
+
+    The ``summary`` template is rendered.
+    """
     i = reversed(web.repo.tagslist())
 
     def tagentries(**map):
         parity = paritygen(web.stripecount)