~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/doc_generate/autodoc_man.py

  • Committer: John Arbash Meinel
  • Date: 2010-05-11 10:45:26 UTC
  • mto: This revision was merged to the branch mainline in revision 5225.
  • Revision ID: john@arbash-meinel.com-20100511104526-zxnstcxta22hzw2n
Implement a compiled extension for parsing the text key out of a CHKInventory value.

Related to bug #562666. This seems to shave 5-10% out of the time spent doing a complete
branch of bzr.dev/launchpad/etc.

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"
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