Colorizing run-tests.py output

Pierre-Yves David pierre-yves.david at ens-lyon.org
Sun Aug 31 02:43:35 CDT 2014



On 08/31/2014 12:10 AM, Angel Ezquerra wrote:
> Hi,
>
> today Kevin Bullock discovered and taught me a nice trick to colorize
> the output of run-tests.py. To do so you can use the --view flag of
> the run-tests script to tell it to use "git diff" to view the test
> results. To do so you can do:
>
> ./run-tests.py --view 'git diff --color --no-index' TESTFILE
>
> As a nice side effect, this also pages the run-tests output, and shows
> you the first difference (which is usually the most interesting one).

That would be a an interresting feature to have natively. (I believe 
with have some diff colorisation code in mercurial itself)

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list