~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_reconfigure.py

terminal_width can now returns None.

* bzrlib/win32utils.py:
(get_console_size): Fix typo in comment.

* bzrlib/ui/text.py:
(TextProgressView._show_line): Handle the no terminal present case.

* bzrlib/tests/test_osutils.py:
(TestTerminalWidth): Update tests.

* bzrlib/tests/blackbox/test_too_much.py:
Fix some imports.
(OldTests.test_bzr): Handle the no terminal present case.

* bzrlib/tests/__init__.py:
(VerboseTestResult.report_test_start): Handle the no terminal
present case.

* bzrlib/status.py:
(show_pending_merges): Handle the no terminal present case.
(show_pending_merges.show_log_message): Factor out some
code. Handle the no terminal present case.

* bzrlib/osutils.py:
(terminal_width): Return None if no precise value can be found.

* bzrlib/log.py:
(LineLogFormatter.__init__): Handle the no terminal present case.
(LineLogFormatter.truncate): Accept None as max_len meaning no
truncation.
(LineLogFormatter.log_string): 

* bzrlib/help.py:
(_help_commands_to_text): Handle the no terminal present case.

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
        tree.add('foo')
132
132
        self.run_bzr('reconfigure --with-no-trees --force',
133
133
            working_dir='repo/branch')
134
 
        self.assertPathExists('repo/branch/foo')
 
134
        self.failUnlessExists('repo/branch/foo')
135
135
        tree = workingtree.WorkingTree.open('repo/branch')
136
136
 
137
137
    def test_shared_format_to_standalone(self, format=None):
197
197
         * then make the second unstacked, so it has to fill in history from
198
198
           the original fallback lying underneath its original content
199
199
 
200
 
        See discussion in <https://bugs.launchpad.net/bzr/+bug/391411>
 
200
        See discussion in <https://bugs.edge.launchpad.net/bzr/+bug/391411>
201
201
        """
202
202
        # there are also per_branch tests that exercise remote operation etc
203
203
        tree_1 = self.make_branch_and_tree('b1', format='2a')