lp://qastaging/~benoit.pierre/bzrtools/colordiff_when_tty

Created by Benoit Pierre and last modified

Only colorize output in colordiff if terminal support it: fix has_ansi_colors to check if STDOUT is a TTY, and use it in colordiff. This allows one to alias diff to cdiff and always use it even when redirecting outpout to a file.

Get this branch:
bzr branch lp://qastaging/~benoit.pierre/bzrtools/colordiff_when_tty
Only Benoit Pierre can upload to this branch. If you are Benoit Pierre please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Benoit Pierre
Project:
BzrTools
Status:
Merged

Recent revisions

683. By Benoit Pierre

Add --color=MODE option to cdiff; MODE can be:
* never: never colorize output
* auto: colorize output if terminal supports it, and STDOUT is a TTY
* always: always colorize ouput (default)

682. By Benoit Pierre

Only colorize output in colordiff if terminal support it.

681. By Benoit Pierre

Check if STDOUT is a TTY in has_ansi_colors: return False if not.

680. By Aaron Bentley

More shelf test fixes

679. By Aaron Bentley

Update shelf tests to new command names

678. By Aaron Bentley

Merge with bzrtools-1.9

677. By Aaron Bentley

Update version to 1.10.0

676. By Aaron Bentley

Fix release date

675. By Aaron Bentley

More release updates

674. By Aaron Bentley

Update for 1.9.0 release

Branch metadata

Branch format:
Branch format 6
Repository format:
Bazaar pack repository format 1 (needs bzr 0.92)
This branch contains Public information 
Everyone can see this information.

Subscribers