Created by Vincent Ladeuil on 2009-12-09 and last modified on 2009-12-16
Get this branch:
bzr branch lp:~vila/bzr/316357-SIGWINCH
Only Vincent Ladeuil can upload to this branch. If you are Vincent Ladeuil please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Vincent Ladeuil

Recent revisions

4763. By Vincent Ladeuil on 2009-12-16

Review feedback: import signal lazily and don't install SIGWINCH on windows.

4762. By Vincent Ladeuil on 2009-12-10

Cleanup and NEWS entry.

* bzrlib/ui/text.py:
(TextProgressView._show_line): Stop caching terminal width.

4761. By Vincent Ladeuil on 2009-12-09

catch SIGWINCH, but that means soem IO can be interrupted and the code
base is not ready for that.

* bzrlib/ui/text.py:
(TextProgressView._show_line): Refresh width in case a SIGWINCH
was received.

* bzrlib/osutils.py:
(_terminal_size_changed): Trivial implementation

4760. By Vincent Ladeuil on 2009-12-09

More robusts tests for osutils.terminal_width().

* bzrlib/tests/test_osutils.py:
(TestTerminalWidth): Make the tests more robust.

* bzrlib/osutils.py:
(terminal_width): Document the implemented behavior. Delegate the
OS specific part to _terminal_size.
(_ioctl_terminal_size): The unix implementation for
(_win32_terminal_size): The windows implementation for

4759. By Vincent Ladeuil on 2009-12-09

Merge jam's fix for termios import

4758. By Vincent Ladeuil on 2009-12-04

Re-fix the priority order since there is a known valid case.

* bzrlib/tests/test_osutils.py:
(TestTerminalWidth.test_falls_back_to_COLUMNS): Ensures COLUMNS is
taken into account if BZR_COLUMNS is not set.

* bzrlib/osutils.py:
(terminal_width): COLUMNS takes priority on termios.TIOCGWINSZ as
shown by tests under emacs (on no counter examples are known).

4757. By Vincent Ladeuil on 2009-12-04

merge trunk

4756. By Vincent Ladeuil on 2009-12-04

Fixed as per poolie's review.

4755. By Vincent Ladeuil on 2009-12-02

merge trunk and resolve conflicts to cleanup submission

4754. By Vincent Ladeuil on 2009-12-02

Introduce BZR_COLUMNS since COLUMNS behaviour is too obscure.

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

* bzrlib/tests/__init__.py:
(TestCase._cleanEnvironment): Add BZR_COLUMNS.

* bzrlib/osutils.py:
(terminal_width): BZR_COLUMNS is the official way to override.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
This branch contains Public information 
Everyone can see this information.