mercurial/help.py
changeset 17837 b623e323c561
parent 17323 2be2a070f294
child 18746 c0087d48ec3a
--- a/mercurial/help.py	Thu Oct 18 23:55:15 2012 -0500
+++ b/mercurial/help.py	Thu Oct 18 10:31:15 2012 +0900
@@ -61,6 +61,11 @@
 
     return ''.join(rst)
 
+def indicateomitted(rst, omitted, notomitted=None):
+    rst.append('\n\n.. container:: omitted\n\n    %s\n\n' % omitted)
+    if notomitted:
+        rst.append('\n\n.. container:: notomitted\n\n    %s\n\n' % notomitted)
+
 def topicmatch(kw):
     """Return help topics matching kw.