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

Re: svn commit: rev 1923 - trunk/subversion trunk/subversion/libsvn_ra_pipe

From: Kevin Pilch-Bisson <kevin_at_pilch-bisson.net>
Date: 2002-05-10 05:14:15 CEST

On Thu, May 09, 2002 at 10:03:58PM -0500, kevin@tigris.org wrote:
> Author: kevin
> Date: 2002-05-10 03:03 GMT
> New Revision: 1923
>
> Added:
> trunk/subversion/libsvn_ra_pipe/
> trunk/subversion/libsvn_ra_pipe/ra_pipe.c
> Log:
> A rough start at an implementation of ra_pipe. Note that this is not added
> to the build yet, since it isn't even close to working :) Added to the repos
> right now, since some others said they might be able to work on it over the
> weekend.
>
> Watch the dev list for details of using this, and how well it works at
> present.

Okay here's the deal. I can check out a greek tree by running
svn co pipe://anything < subversion/tests/xml/co1-inline.xml

Nothing else will work yet, since most of the other vtable routines aren't
filled in yet, but hey, it's a start.

As well, you'll need to apply the following patch to make the rest of svn
aware of ra_pipe's existence.

Have Fun:)

Index: ./build.conf
===================================================================
--- ./build.conf
+++ ./build.conf Thu Apr 25 08:52:55 2002
@@ -128,6 +128,13 @@
 install = base-lib
 libs = libsvn_subr $(SVN_APRUTIL_LIBS) $(SVN_APR_LIBS) $(NEON_LIBS)
 
+# Accessing repositories via stdin/stdout
+[libsvn_ra_pipe]
+type = lib
+path = subversion/libsvn_ra_pipe
+install = base-lib
+libs = libsvn_delta libsvn_subr $(SVN_APRUTIL_LIBS) $(SVN_APR_LIBS)
+
 # Accessing repositories via direct libsvn_fs
 [libsvn_ra_local]
 type = lib
Index: ./configure.in
===================================================================
--- ./configure.in
+++ ./configure.in Mon May 6 20:35:02 2002
@@ -322,8 +322,13 @@
 if test "$enable_shared" = "no" -o "$enable_dso" != "yes"; then
   AC_DEFINE(SVN_LIBSVN_CLIENT_LINKS_RA_DAV, 1,
         [Defined if libsvn_client should link against libsvn_ra_dav])
- SVN_RA_LIB_DEPS="subversion/libsvn_ra_dav/libsvn_ra_dav.la"
- SVN_RA_LIB_LINK="\$(abs_builddir)/subversion/libsvn_ra_dav/libsvn_ra_dav.la"
+ AC_DEFINE(SVN_LIBSVN_CLIENT_LINKS_RA_PIPE, 1,
+ [Defined if libsvn_client should link against libsvn_ra_pipe])
+ SVN_RA_LIB_DEPS="subversion/libsvn_ra_pipe/libsvn_ra_pipe.la \
+ subversion/libsvn_ra_dav/libsvn_ra_dav.la"
+
+ SVN_RA_LIB_LINK="\$(abs_builddir)/subversion/libsvn_ra_dav/libsvn_ra_pipe.a \
+ \$(abs_builddir)/subversion/libsvn_ra_pipe/libsvn_ra_dav.la"
 
   if test "$svn_lib_berkeley_db" = "yes"; then
     AC_DEFINE(SVN_LIBSVN_CLIENT_LINKS_RA_LOCAL, 1,
@@ -331,6 +336,7 @@
     SVN_RA_LIB_DEPS="subversion/libsvn_ra_local/libsvn_ra_local.la \
         subversion/libsvn_repos/libsvn_repos.la \
         subversion/libsvn_fs/libsvn_fs.la \
+ subversion/libsvn_ra_pipe/libsvn_ra_pipe.la \
         subversion/libsvn_ra_dav/libsvn_ra_dav.la"
 
     ### We can't just append to SVN_RA_LIB_LINK because of the following
@@ -341,6 +347,7 @@
     SVN_RA_LIB_LINK="\$(abs_builddir)/subversion/libsvn_ra_local/libsvn_ra_local.la \
         \$(abs_builddir)/subversion/libsvn_repos/libsvn_repos.la \
         \$(abs_builddir)/subversion/libsvn_fs/libsvn_fs.la \
+ \$(abs_builddir)/subversion/libsvn_ra_pipe/libsvn_ra_pipe.la \
         \$(abs_builddir)/subversion/libsvn_ra_dav/libsvn_ra_dav.la"
   fi
 
Index: subversion/include/svn_ra.h
===================================================================
--- subversion/include/svn_ra.h
+++ subversion/include/svn_ra.h Thu May 9 22:51:48 2002
@@ -595,6 +595,9 @@
 svn_error_t * svn_ra_local_init (int abi_version,
                                  apr_pool_t *pool,
                                  apr_hash_t *hash);
+svn_error_t * svn_ra_pipe_init (int abi_version,
+ apr_pool_t *pool,
+ apr_hash_t *hash);
 
 
 /*----------------------------------------------------------------------*/
Index: subversion/libsvn_ra/ra_loader.c
===================================================================
--- subversion/libsvn_ra/ra_loader.c
+++ subversion/libsvn_ra/ra_loader.c Wed Apr 24 22:54:28 2002
@@ -67,6 +67,13 @@
 #endif
   },
 
+ {
+ "pipe",
+#ifdef SVN_LIBSVN_CLIENT_LINKS_RA_PIPE
+ svn_ra_pipe_init
+#endif
+ },
+
   /* ADD NEW RA IMPLEMENTATIONS HERE (as they're written) */
 
   /* sentinel */

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Pilch-Bisson                    http://www.pilch-bisson.net
     "Historically speaking, the presences of wheels in Unix
     has never precluded their reinvention." - Larry Wall
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  • application/pgp-signature attachment: stored
Received on Fri May 10 05:18:34 2002

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