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

'svn diff -rREV1:REV2' code organisation

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-01-06 14:26:53 CET

Hi

I have some code that implements 'svn diff -rREV1:REV2' i.e. comparing
two repository versions. It's not yet complete but it is producing
diffs. It implements one of the ideas discussed last month: sending a
request for the REV1 to REV2 diff, using that to drive an editor which
sends separate requests for REV1 copies of files as required. It uses
the same ra session for all requests. This has the big advantage that
no directory hierarchy needs to be constructed.

At present I have this new editor sitting in libsvn_wc. This is a
little odd, since there is no working copy involved. Temporary files
get created but they are just dumped in the current directory at
present. The main reason the new code sits in libsvn_wc is that it
uses the svn_wc_diff_cmd_t type introduced with the 'svn diff -rREV'
code. The new code also has a dependency on svn_ra.h, which libsvn_wc
already has, but most of the other libsvn_* don't.

So my question is where do you think I should put this new editor? Is
it OK to leave it in libsvn_wc? If it gets moved then where should
the svn_wc_diff_cmd_t type go so that the existing 'svn diff -rREV'
editor in libsvn_wc and the new editor can both use it?

-- 
Philip
---------------------------------------------------------------------
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:36:55 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.