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

Re: internalized diff (was: Patch command execution)

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-02-08 00:15:21 CET

Greg Stein <gstein@lyra.org> writes:
> I've actually been thinking of a way to generate a context/unidiff straight
> from svndiff. I don't recall the original motivation :-), but once the code
> is available, then I'm sure that I'll remember :-)
>
> If the code only generated one type of diff (e.g. it didn't support all the
> switches/formats that "diff" has), then it might not be bad. Gathering
> context is relatively easy -- grab 1000 characters prior to <point> and scan
> it to assemble three lines (of context). If you don't have three lines, then
> grab another chunk. Same for the <end-point>. Those points are defined by
> the delta windows, and the change between start/end simply refers to some
> text from "somewhere" which gets inserted. etc etc.

That would remove our dependence on external `diff', which would be
nice. Except, ooooh, external diff supports all those cool options,
which people actually use. Wouldn't want to reimplement "-b", "-B",
"-u", and all that...

Yugh. What was that motivation, again? :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:05 2006

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.