~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/doc_generate/autodoc_man.py

  • Committer: Robert Collins
  • Date: 2010-06-25 20:34:05 UTC
  • mto: This revision was merged to the branch mainline in revision 5324.
  • Revision ID: robertc@robertcollins.net-20100625203405-c74lxd3enklhaqf9
``bzrlib.osutils.get_terminal_encoding`` will now only mutter its
selection when explicitly requested; this avoids many duplicate calls
being logged when helpers, wrappers and older code that manually calls
it are executed it is now logged deliberately by the ui setup code.
(Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2005 Canonical Ltd.
 
1
# Copyright (C) 2005-2010 Canonical Ltd
2
2
 
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
123
123
                if argname is not None:
124
124
                    l += ' ' + argname
125
125
                if short_name:
126
 
                    assert len(short_name) == 1
127
126
                    l += ', -' + short_name
128
127
                l += (30 - len(l)) * ' ' + (help or '')
129
128
                wrapped = textwrap.fill(l, initial_indent='',
130
 
                                        subsequent_indent=30*' ')
 
129
                    subsequent_indent=30*' ',
 
130
                    break_long_words=False,
 
131
                    )
131
132
                option_str = option_str + wrapped + '\n'       
132
133
 
133
134
    aliases_str = ""
170
171
man_head = """\
171
172
.TH bzr 1 "%(datestamp)s" "%(version)s" "Bazaar"
172
173
.SH "NAME"
173
 
Bazaar (%(bzrcmd)s) - next-generation distributed version control
 
174
%(bzrcmd)s - Bazaar next-generation distributed version control
174
175
.SH "SYNOPSIS"
175
176
.B "%(bzrcmd)s"
176
177
.I "command"
185
186
.B "help"
186
187
.I "command"
187
188
.SH "DESCRIPTION"
188
 
Bazaar (or %(bzrcmd)s) is a project of Canonical to develop an open source
 
189
Bazaar (or %(bzrcmd)s) is a project of Canonical to develop an free
189
190
distributed version control system that is powerful, friendly, and scalable.
190
191
Version control means a system that keeps track of previous revisions
191
192
of software source code or similar information and helps people work on it in teams.
240
241
.br
241
242
log10 = log --short -r -10..-1
242
243
.SH "SEE ALSO"
243
 
.UR http://www.bazaar-vcs.org/
244
 
.BR http://www.bazaar-vcs.org/
 
244
.UR http://www.bazaar.canonical.com/
 
245
.BR http://www.bazaar.canonical.com/
245
246
"""
246
247