You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by cm...@apache.org on 2012/06/12 16:12:45 UTC

svn commit: r1349367 - /subversion/trunk/subversion/libsvn_ra_serf/update.c

Author: cmpilato
Date: Tue Jun 12 14:12:44 2012
New Revision: 1349367

URL: http://svn.apache.org/viewvc?rev=1349367&view=rev
Log:
Allow ra_serf to checkout from pre-1.2 servers (such as the one
currently serving up http://svn.ali.as/) which transmit <S:txdelta>
tags within <S:add-file> even when not in send-all mode.

* subversion/libsvn_ra_serf/update.c
  (start_report): Recognize (and ignore) "<S:txdelta>" tags.

Reported by: Daniel KlĂ­ma <danklima{_AT_}gmail.com>

Modified:
    subversion/trunk/subversion/libsvn_ra_serf/update.c

Modified: subversion/trunk/subversion/libsvn_ra_serf/update.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/update.c?rev=1349367&r1=1349366&r2=1349367&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/update.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/update.c Tue Jun 12 14:12:44 2012
@@ -1806,6 +1806,16 @@ start_report(svn_ra_serf__xml_parser_t *
           info->prop_encoding = svn_xml_get_attr_value("encoding", attrs);
           svn_stringbuf_setempty(info->prop_value);
         }
+      else if (strcmp(name.name, "txdelta") == 0)
+        {
+          /* Pre 1.2, mod_dav_svn was using <txdelta> tags (in
+             addition to <fetch-file>s and such) when *not* in
+             "send-all" mode.  As a client, we're smart enough to know
+             that's wrong, so we'll just push an ignorable state
+             here. */
+          /*push_state(parser, ctx, TXDELTA);*/
+          ;
+        }
       else
         {
           return svn_error_createf(SVN_ERR_RA_DAV_MALFORMED_DATA, NULL,