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

Unified context diff...(2) WAS: RE: svn commit: rev 1802 - trunk/subversion/libsvn_delta

From: Sander Striker <striker_at_apache.org>
Date: 2002-04-27 15:14:17 CEST

Hi,

> Author: striker
> Date: 2002-04-27 12:49 GMT
> New Revision: 1802
>
> Modified:
> trunk/subversion/libsvn_delta/diff_file.c
> Log:
> * subversion/libsvn_delta/diff_file.c
>
> (svn_diff__file_output_unified_line): Add a comment as to when
> '\ No newline at end of file' is added.
>
> (svn_diff__file_output_unified_flush_hunk): Add and update comments.
> Break long lines. Use apr_file_write instead of apr_file_printf
> for output of the hunk content. Also add error checking to that
> operation.
>
> (svn_diff__file_output_unified_default_hdr): Use a tab rather than
> three spaces to seperate the path from the last modified time.

This last change gave me:

$ ./diff-striker original modified >output_striker
$ diff -u original modified >output_diff
$ diff output_striker output_diff
[nothing was displayed]

FYI, the diff-striker executable was built from the source I posted in
<JLEGKKNELMHCJPNMOKHOIEEAFMAA.striker@apache.org> "Unified context diff...".

I think I have nailed all edge cases now, but it would be nice to be
sure. Please people, test the crap out of this! :)

Thanks,

Sander

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Apr 27 15:08:28 2002

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.