Rev 5228: Make sure we don't get bug reports about the known broken info links. in file:///home/vila/src/bzr/bugs/219334-texinfo/

Vincent Ladeuil v.ladeuil+lp at free.fr
Wed Jul 21 09:07:15 BST 2010


At file:///home/vila/src/bzr/bugs/219334-texinfo/

------------------------------------------------------------
revno: 5228
revision-id: v.ladeuil+lp at free.fr-20100721080714-kyeic9rw6svpr30s
parent: v.ladeuil+lp at free.fr-20100709104342-sf6j8t8a1xloraii
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: texinfo
timestamp: Wed 2010-07-21 10:07:14 +0200
message:
  Make sure we don't get bug reports about the known broken info links.
-------------- next part --------------
=== modified file 'bzrlib/doc_generate/writers/texinfo.py'
--- a/bzrlib/doc_generate/writers/texinfo.py	2010-07-09 10:07:29 +0000
+++ b/bzrlib/doc_generate/writers/texinfo.py	2010-07-21 08:07:14 +0000
@@ -83,7 +83,13 @@
         # FIXME: info requires a Top node for each info file, but unless we
         # chose a global layout to divide the overall documentation into a set
         # of info files, there is no criteria to decide for a title.
-        top_cmd = '@node Top\n at top Placeholder\n'
+        top_cmd = '''\
+This file has been converted using a beta rst->texinfo converter. 
+Most of the info links are currently bogus, don't report bugs about them,
+this is currently worked on.
+ at node Top
+ at top Placeholder
+'''
         self.body = top_cmd + ''.join(node['text'])
 
     # Layout

=== modified file 'bzrlib/tests/doc_generate/__init__.py'
--- a/bzrlib/tests/doc_generate/__init__.py	2010-07-09 10:43:42 +0000
+++ b/bzrlib/tests/doc_generate/__init__.py	2010-07-21 08:07:14 +0000
@@ -92,7 +92,13 @@
         """
         if header is None:
             # default boilerplate
-            header = '@node Top\n at top Placeholder\n'
+            header = '''\
+This file has been converted using a beta rst->texinfo converter. 
+Most of the info links are currently bogus, don't report bugs about them,
+this is currently worked on.
+ at node Top
+ at top Placeholder
+'''
         if end is None:
             # By default we test constructs that are embedded into a paragraph
             # which always end with two \n (even if the input has none)

=== modified file 'bzrlib/tests/doc_generate/writers/test_texinfo.py'
--- a/bzrlib/tests/doc_generate/writers/test_texinfo.py	2010-07-09 10:43:42 +0000
+++ b/bzrlib/tests/doc_generate/writers/test_texinfo.py	2010-07-21 08:07:14 +0000
@@ -201,6 +201,9 @@
         app, out, err = self.make_sphinx()
         self.build(app)
         self.assertFileEqual("""\
+This file has been converted using a beta rst->texinfo converter. 
+Most of the info links are currently bogus, don't report bugs about them,
+this is currently worked on.
 @node Top
 @top Placeholder
 @node table-of-contents
@@ -211,6 +214,9 @@
 """,
                              'index.texi')
         self.assertFileEqual("""\
+This file has been converted using a beta rst->texinfo converter. 
+Most of the info links are currently bogus, don't report bugs about them,
+this is currently worked on.
 @node Top
 @top Placeholder
 @node bzr-0-0-8



More information about the bazaar-commits mailing list