/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tools/generate_docs.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 19:09:26 UTC
  • mfrom: (6622.1.36 breezy)
  • Revision ID: jelmer@jelmer.uk-20170521190926-5vtz8xaf0e9ylrpc
Merge rename to breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
# along with this program; if not, write to the Free Software
17
17
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
18
 
19
 
"""%(prog)s - generate information from built-in bzr help
 
19
"""%(prog)s - generate information from built-in brz help
20
20
 
21
 
%(prog)s creates a file with information on bzr in one of
 
21
%(prog)s creates a file with information on brz in one of
22
22
several different output formats:
23
23
 
24
24
    man              man page
38
38
 
39
39
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
40
40
 
41
 
import bzrlib
42
 
from bzrlib import (
 
41
import breezy
 
42
from breezy import (
43
43
    commands,
44
44
    # Don't remove the following import, it triggers a format registration that
45
45
    # avoid http://pad.lv/956860
64
64
    parser.add_option("-o", "--output", dest="filename", metavar="FILE",
65
65
                      help="write output to FILE")
66
66
 
67
 
    parser.add_option("-b", "--bzr-name",
68
 
                      dest="bzr_name", default="bzr", metavar="EXEC_NAME",
69
 
                      help="name of bzr executable")
 
67
    parser.add_option("-b", "--brz-name",
 
68
                      dest="brz_name", default="brz", metavar="EXEC_NAME",
 
69
                      help="name of brz executable")
70
70
 
71
71
    parser.add_option("-e", "--examples",
72
72
                      action="callback", callback=print_extended_help,
79
79
        parser.print_help()
80
80
        sys.exit(1)
81
81
 
82
 
    with bzrlib.initialize():
 
82
    with breezy.initialize():
83
83
        commands.install_bzr_command_hooks()
84
84
        infogen_type = args[1]
85
85
        infogen_mod = doc_generate.get_module(infogen_type)