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

Re: [PATCH] Fix for Issue 1311

From: <cmpilato_at_collab.net>
Date: 2003-07-18 03:41:07 CEST

Shlomi Fish <shlomif@vipe.technion.ac.il> writes:

> > Honestly, the better thing to do would be to make ra->do_switch()
> > support this special case so we can lose the special code in
> > svn_client_switch() and avoid adding the same to all callers of this
> > interface. I began this work a while ago, but my patch-in-progress
> > was lost in an OS re-install. That said, I'd love to re-do this
> > change.
> >
>
> How is this change going to be performed? Which modules of the
> Subversion modules would we have to change to do this?

You know, I actually misspoke above. I forgot that we have
ra->do_diff() (there was a time when diff used ra->do_switch). So,
actually, there are a couple of issues:

   - ra->do_switch() doesn't support the file case
   - ra->do_diff() doesn't support the file case

> >From what I understand we have to:
>
> 1. Retrieve the source file.
>
> 2. Construct a txdelta stream between the source file and the target file.
>
> 3. Apply it between the source file and the target file on the local
> machine.
>
> 4. Run svn_diff_do_diff().
>
> I know how to perform step #1, but I'm stumped on #2-#3.

Or, you could just fetch the source file, fetch the target file, and
run svn_diff_do_diff(). Forget the txdelta stuff altogether. :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jul 18 03:43:50 2003

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.