Patchwork [08,of,22,hgweb-help] webcommands: document "bookmarks" web command

login
register
mail settings
Submitter Gregory Szorc
Date Feb. 7, 2015, 7:15 a.m.
Message ID <383c2c81b9be38c6da8b.1423293346@gps-mbp.local>
Download mbox | patch
Permalink /patch/7745/
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 1423284234 28800
#      Fri Feb 06 20:43:54 2015 -0800
# Node ID 383c2c81b9be38c6da8bd8dfb196aa6294583230
# Parent  378c6d985c9bd48215ab3f950846125cb8faddb3
webcommands: document "bookmarks" 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
@@ -522,8 +522,18 @@  def tags(web, req, tmpl):
                 latestentry=lambda **x: entries(True, True, **x))
 
 @webcommand('bookmarks')
 def bookmarks(web, req, tmpl):
+    """
+    /bookmarks
+    ----------
+
+    Show information about bookmarks.
+
+    No arguments are accepted.
+
+    The ``bookmarks`` template is rendered.
+    """
     i = [b for b in web.repo._bookmarks.items() if b[1] in web.repo]
     parity = paritygen(web.stripecount)
 
     def entries(latestonly, **map):