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

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

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-04-29 19:40:51 CEST

"Sander Striker" <striker@apache.org> writes:

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

Well, it would be easier with a test suite :-) No point testing the
stuff you have already tested. However

$ cat zz1
999
999
999
999
999
0
1
2
2
1
999
999
999
$ cat zz2
999
999
999
999
999
0
4
4
0
4
999
999
999
$ ./diff-svn zz1 zz2
--- zz1 Mon Apr 29 18:35:22 2002
+++ zz2 Mon Apr 29 18:35:28 2002
@@ -1,13 +1,13 @@
 999
 999
 999
 999
 999
 0
-1
-2
-2
-1
+4
+4
+0
+4
 999
 999
 999
$ diff -u zz1 zz2
--- zz1 Mon Apr 29 18:35:22 2002
+++ zz2 Mon Apr 29 18:35:28 2002
@@ -4,10 +4,10 @@
 999
 999
 0
-1
-2
-2
-1
+4
+4
+0
+4
 999
 999
 999

svn generates too much leading context.

-- 
Philip
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Apr 29 19:42:11 2002

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