/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 doc/en/user-guide/reviewing_changes.txt

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:
8
8
prior to permanently recording it. This way, you can make sure you'll be
9
9
committing what you intend to.
10
10
 
11
 
Two bzr commands are particularly useful here: **status** and **diff**.
 
11
Two bzr commands are particularly useful here: **status** and **diff**.  
12
12
 
13
13
bzr status
14
14
----------
45
45
    % bzr diff -r 1000..          # everything since r1000
46
46
    % bzr diff -r 1000..1100      # changes from 1000 to 1100
47
47
 
48
 
To see the changes introduced by a single revision, you can use the ``-c``
49
 
option to diff.
50
 
 
51
 
::
52
 
 
53
 
    % bzr diff -c 1000            # changes from r1000
54
 
                                  # identical to -r999..1000
55
 
 
56
48
The ``--diff-options`` option causes bzr to run the external diff program,
57
49
passing options.  For example::
58
50
 
61
53
Some projects prefer patches to show a prefix at the start of the path
62
54
for old and new files.  The ``--prefix`` option can be used to provide
63
55
such a prefix.
64
 
As a shortcut, ``bzr diff -p1`` produces a form that works with the
 
56
As a shortcut, ``bzr diff -p1`` produces a form that works with the 
65
57
command ``patch -p1``.
66
58