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

[patch] First stab at text deltas

From: Branko Čibej <branko.cibej_at_hermes.si>
Date: 2000-08-09 19:49:50 CEST

I wanted to get some hands-on experience with the text delta interface,
so I've gone and done a very primitive implementation, and put in a
test driver. I haven't touched vcdiff here yet, nor vdelta (although
we _do_ generate valid deltas, as you'll see :-).

I made a small change to the interface -- we need an apr_pool_t* in
svn_delta_window_t. Right now it's used to allocate the window and
dependent structures, and its a sub-pool of the pool used by the
delta stream.

I'm still thinking about how to structure this stuff, so please don't
be too picky. (This isn't even the foundation yet -- rather, it's the
hole into which the foundation will be laid. :-)

    Brane

-- 
Branko Čibej                 <branko.cibej@hermes.si>
HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia
voice: (+386 1) 586 53 49     fax: (+386 1) 586 52 70

Index: subversion/include/svn_delta.h
===================================================================
RCS file: /cvs/subversion/subversion/include/svn_delta.h,v
retrieving revision 1.27
diff -u -p -r1.27 svn_delta.h
--- subversion/include/svn_delta.h 2000/08/08 17:34:03 1.27
+++ subversion/include/svn_delta.h 2000/08/09 17:31:56
@@ -136,6 +136,8 @@ typedef struct svn_delta_window_t {
   /* New data, for use by any `svn_delta_new' instructions. */
   svn_string_t *new;
 
+ /* The memory pool used by this window. */
+ apr_pool_t* pool;
 } svn_delta_window_t;
 
 
Index: subversion/libsvn_delta/Makefile.am
===================================================================
RCS file: /cvs/subversion/subversion/libsvn_delta/Makefile.am,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile.am
--- subversion/libsvn_delta/Makefile.am 2000/08/08 23:22:04 1.3
+++ subversion/libsvn_delta/Makefile.am 2000/08/09 17:31:56
@@ -8,7 +8,7 @@
 lib_LTLIBRARIES = libsvn_delta.la
 
 ## Sources needed to build each library (names canonicalized)
-libsvn_delta_la_SOURCES = delta_parse.c
+libsvn_delta_la_SOURCES = delta_parse.c delta_stream.c
 
 ## Build flags ---------
 

Received on Sat Oct 21 14:36:06 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.