534
534
"""A color version of bzr's diff"""
535
535
takes_args = property(lambda x: get_cmd_object('diff').takes_args)
536
536
takes_options = list(get_cmd_object('diff').takes_options) + [
539
title='Color Mode', value_switches=False, enum_switch=True,
538
545
help='Warn if trailing whitespace or spurious changes have been'
541
def run(self, check_style=False, *args, **kwargs):
548
def run(self, color='always', check_style=False, *args, **kwargs):
542
549
from colordiff import colordiff
550
colordiff(color, check_style, *args, **kwargs)
546
553
class cmd_rspush(BzrToolsCommand):