/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/doc_generate/autodoc_man.py

  • Committer: John Arbash Meinel
  • Date: 2009-06-12 18:05:15 UTC
  • mto: (4371.4.5 vila-better-heads)
  • mto: This revision was merged to the branch mainline in revision 4449.
  • Revision ID: john@arbash-meinel.com-20090612180515-t0cwbjsnve094oik
Add a failing test for handling nodes that are in the same linear chain.

It fails because the ancestry skipping causes us to miss the fact that the two nodes
are actually directly related. We could check at the beginning, as the 
code used to do, but I think that will be incomplete for the more-than-two
heads cases.

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
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"
241
240
.br
242
241
log10 = log --short -r -10..-1
243
242
.SH "SEE ALSO"
244
 
.UR http://www.bazaar.canonical.com/
245
 
.BR http://www.bazaar.canonical.com/
 
243
.UR http://www.bazaar-vcs.org/
 
244
.BR http://www.bazaar-vcs.org/
246
245
"""
247
246