You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2014/03/27 13:22:08 UTC

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

Author: rhuijben
Date: Thu Mar 27 12:22:07 2014
New Revision: 1582274

URL: http://svn.apache.org/r1582274
Log:
* subversion/libsvn_ra_serf/update.c
  (update_opened,
   update_closed): Following up on r1582023, and r1582047 add comments
     explaining the reason this code is here.

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=1582274&r1=1582273&r2=1582274&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/update.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/update.c Thu Mar 27 12:22:07 2014
@@ -1789,6 +1789,18 @@ update_opened(svn_ra_serf__xml_estate_t 
 
       case FETCH_PROPS:
         {
+          /* Subversion <= 1.6 servers will return a fetch-props element on
+             open-file and open-dir when non entry props were changed in
+             !send-all mode. In turn we fetch the full set of properties
+             and send all of those as *changes* to the editor. So these
+             editors have to be aware that they receive-non property changes.
+             (In case of incomplete directories they have to be aware anyway)
+
+             In r1063337 this behavior was changed in mod_dav_svn to always
+             send property changes inline in these cases. (See issue #3657)
+
+             Note that before that change the property changes to the last_*
+             entry props were already inlined via specific xml elements. */
           if (ctx->cur_file)
             ctx->cur_file->fetch_props = TRUE;
           else if (ctx->cur_dir)
@@ -2073,6 +2085,20 @@ update_closed(svn_ra_serf__xml_estate_t 
       case CREATIONDATE:
       case CREATOR_DISPLAYNAME:
         {
+          /* Subversion <= 1.6 servers would return a fetch-props element on
+             open-file and open-dir when non entry props were changed in
+             !send-all mode. In turn we fetch the full set of properties and
+             send those as *changes* to the editor. So these editors have to
+             be aware that they receive non property changes.
+             (In case of incomplete directories they have to be aware anyway)
+
+             In that case the last_* entry props are posted as 3 specific xml
+             elements, which we handle here.
+
+             In r1063337 this behavior was changed in mod_dav_svn to always
+             send property changes inline in these cases. (See issue #3657)
+           */
+
           const char *propname;
 
           if (ctx->cur_file)