Rev 6507: (jelmer) Document launchpad commands in bzr(1) manpage. (Jelmer Vernooij) in file:///srv/pqm.bazaar-vcs.org/archives/thelove/bzr/%2Btrunk/
Patch Queue Manager
pqm at pqm.ubuntu.com
Thu Mar 15 15:37:46 UTC 2012
At file:///srv/pqm.bazaar-vcs.org/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 6507 [merge]
revision-id: pqm at pqm.ubuntu.com-20120315153746-mtks01on6sjxn8zu
parent: pqm at pqm.ubuntu.com-20120315125409-1kihxmzcxrv55b12
parent: jelmer at samba.org-20120315150948-0h3gg81pwot4y5j7
committer: Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Thu 2012-03-15 15:37:46 +0000
message:
(jelmer) Document launchpad commands in bzr(1) manpage. (Jelmer Vernooij)
modified:
bzrlib/doc_generate/autodoc_man.py bzrman.py-20050601153041-0ff7f74de456d15e
doc/en/release-notes/bzr-2.6.txt bzr2.6.txt-20120116134316-8w1xxom1c7vcu1t5-1
=== modified file 'bzrlib/doc_generate/autodoc_man.py'
--- a/bzrlib/doc_generate/autodoc_man.py 2012-03-14 16:58:27 +0000
+++ b/bzrlib/doc_generate/autodoc_man.py 2012-03-14 18:11:34 +0000
@@ -23,6 +23,8 @@
from __future__ import absolute_import
+PLUGINS_TO_DOCUMENT = ["launchpad"]
+
import textwrap
import time
@@ -31,6 +33,9 @@
import bzrlib.help_topics
import bzrlib.commands
+from bzrlib.plugin import load_plugins
+load_plugins()
+
def get_filename(options):
"""Provides name of manpage"""
@@ -66,6 +71,11 @@
def command_name_list():
"""Builds a list of command names from bzrlib"""
command_names = bzrlib.commands.builtin_command_names()
+ for cmdname in bzrlib.commands.plugin_command_names():
+ cmd_object = bzrlib.commands.get_cmd_object(cmdname)
+ if (PLUGINS_TO_DOCUMENT is None or
+ cmd_object.plugin_name() in PLUGINS_TO_DOCUMENT):
+ command_names.append(cmdname)
command_names.sort()
return command_names
@@ -105,7 +115,7 @@
return output
-def format_command (params, cmd):
+def format_command(params, cmd):
"""Provides long help for each public command"""
subsection_header = '.SS "%s"\n' % (cmd._usage())
doc = "%s\n" % (cmd.__doc__)
@@ -134,7 +144,7 @@
subsequent_indent=30*' ',
break_long_words=False,
)
- option_str = option_str + wrapped + '\n'
+ option_str += wrapped + '\n'
aliases_str = ""
if cmd.aliases:
=== modified file 'doc/en/release-notes/bzr-2.6.txt'
--- a/doc/en/release-notes/bzr-2.6.txt 2012-03-15 11:09:54 +0000
+++ b/doc/en/release-notes/bzr-2.6.txt 2012-03-15 15:09:48 +0000
@@ -117,6 +117,12 @@
Documentation
*************
+.. Improved or updated documentation.
+
+* Document "bzr lp-propose", "bzr register-branch" and
+ the other Launchpad plugin commands in bzr(1).
+ (Jelmer Vernooij, #843801, #163995)
+
* Prevent lines of command descriptions starting with a dot to
accidentally be interpreted as a roff macro in bzr(1).
(Jelmer Vernooij, #711079)
More information about the bazaar-commits
mailing list