Colorizing run-tests.py output

Augie Fackler raf at durin42.com
Sun Aug 31 03:23:09 CDT 2014


On Aug 31, 2014, at 9:43 AM, Pierre-Yves David <pierre-yves.david at ens-lyon.org> wrote:

> 
> 
> 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)

http://boredzo.org/diff-colorize/ is another option - you get word-level diff highlighting too.

> 
> -- 
> Pierre-Yves David
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20140831/f73d69ff/attachment.pgp>


More information about the Mercurial-devel mailing list