Patchwork [07,of,22,hgweb-help] webcommands: document "branches" web command

login
register
mail settings
Submitter Gregory Szorc
Date Feb. 7, 2015, 7:15 a.m.
Message ID <378c6d985c9bd48215ab.1423293345@gps-mbp.local>
Download mbox | patch
Permalink /patch/7746/
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 1423284250 28800
#      Fri Feb 06 20:44:10 2015 -0800
# Node ID 378c6d985c9bd48215ab3f950846125cb8faddb3
# Parent  b6e48dd99ce1864cba1ad4abaf1f8637bf6be1d4
webcommands: document "branches" 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
@@ -543,8 +543,20 @@  def bookmarks(web, req, tmpl):
                 latestentry=lambda **x: entries(latestonly=True, **x))
 
 @webcommand('branches')
 def branches(web, req, tmpl):
+    """
+    /branches
+    ---------
+
+    Show information about branches.
+
+    All known branches are contained in the output, even closed branches.
+
+    No arguments are accepted.
+
+    The ``branches`` template is rendered.
+    """
     tips = []
     heads = web.repo.heads()
     parity = paritygen(web.stripecount)
     sortkey = lambda item: (not item[1], item[0].rev())