[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Make display_lines() spawn diff

From: Stefan Sperling <stsp_at_elego.de>
Date: Sat, 24 Jul 2010 15:55:19 +0200

On Sat, Jul 24, 2010 at 06:46:11PM +0530, Ramkumar Ramachandra wrote:
> Hi,
>
> This patch is not intended for inclusion, but I hope it conveys the
> idea- I want display_lines() to display a diff instead of the full
> actual and expected outputs.

That would be nice indeed, but ...

> + exit_code, stdout_output, stderr_output = \
> + svntest.main.run_command("diff", 1, 0, '-a', '-u', \
> + actual_file.name, expected_file.name)
> + print "".join(stdout_output)

... this won't work on windows.

We'll need a utility function in our test suite that prints diffs.

> def compare_and_display_lines(message, label, expected, actual,
> raisable=None):
Received on 2010-07-24 15:56:10 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.