~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/doc_generate/autodoc_man.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-03-17 07:05:37 UTC
  • mfrom: (4152.1.2 branch.stacked.streams)
  • Revision ID: pqm@pqm.ubuntu.com-20090317070537-zaud24vjs2szna87
(robertc) Add client-side streaming from stacked branches (over
        bzr:// protocols) when the sort order is compatible with doing
        that. (Robert Collins, Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2010 Canonical Ltd
 
1
# Copyright 2005 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
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
17
"""man.py - create man page from built-in bzr help and static text
18
18
 
123
123
                if argname is not None:
124
124
                    l += ' ' + argname
125
125
                if short_name:
 
126
                    assert len(short_name) == 1
126
127
                    l += ', -' + short_name
127
128
                l += (30 - len(l)) * ' ' + (help or '')
128
129
                wrapped = textwrap.fill(l, initial_indent='',
129
 
                    subsequent_indent=30*' ',
130
 
                    break_long_words=False,
131
 
                    )
 
130
                                        subsequent_indent=30*' ')
132
131
                option_str = option_str + wrapped + '\n'       
133
132
 
134
133
    aliases_str = ""
171
170
man_head = """\
172
171
.TH bzr 1 "%(datestamp)s" "%(version)s" "Bazaar"
173
172
.SH "NAME"
174
 
%(bzrcmd)s - Bazaar next-generation distributed version control
 
173
Bazaar (%(bzrcmd)s) - next-generation distributed version control
175
174
.SH "SYNOPSIS"
176
175
.B "%(bzrcmd)s"
177
176
.I "command"
186
185
.B "help"
187
186
.I "command"
188
187
.SH "DESCRIPTION"
189
 
Bazaar (or %(bzrcmd)s) is a project of Canonical to develop an free
 
188
Bazaar (or %(bzrcmd)s) is a project of Canonical to develop an open source
190
189
distributed version control system that is powerful, friendly, and scalable.
191
190
Version control means a system that keeps track of previous revisions
192
191
of software source code or similar information and helps people work on it in teams.
241
240
.br
242
241
log10 = log --short -r -10..-1
243
242
.SH "SEE ALSO"
244
 
.UR http://bazaar.canonical.com/
245
 
.BR http://bazaar.canonical.com/
 
243
.UR http://www.bazaar-vcs.org/
 
244
.BR http://www.bazaar-vcs.org/
246
245
"""
247
246