subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1327490 - /subversion/trunk/subversion/libsvn_ra_serf/update.c
Date Wed, 18 Apr 2012 12:51:52 GMT
Author: rhuijben
Date: Wed Apr 18 12:51:52 2012
New Revision: 1327490

URL: http://svn.apache.org/viewvc?rev=1327490&view=rev
Log:
* subversion/libsvn_ra_serf/update.c
  (start_report): Following up on r1327474, pass the delete_entry callback the
    revision that is available from mod_dav_svn now.

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=1327490&r1=1327489&r2=1327490&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/update.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/update.c Wed Apr 18 12:51:52 2012
@@ -1559,9 +1559,11 @@ start_report(svn_ra_serf__xml_parser_t *
            strcmp(name.name, "delete-entry") == 0)
     {
       const char *file_name;
+      const char *rev_str;
       report_info_t *info;
       apr_pool_t *tmppool;
       const char *full_path;
+      svn_revnum_t delete_rev = SVN_INVALID_REVNUM;
 
       file_name = svn_xml_get_attr_value("name", attrs);
 
@@ -1572,6 +1574,10 @@ start_report(svn_ra_serf__xml_parser_t *
             _("Missing name attr in delete-entry element"));
         }
 
+      rev_str = svn_xml_get_attr_value("rev", attrs);
+      if (rev_str) /* Not available on older repositories! */
+        delete_rev = (svn_revnum_t)apr_strtoi64(rev_str, NULL, 0);
+
       info = parser->state->private;
 
       SVN_ERR(open_dir(info->dir));
@@ -1581,7 +1587,7 @@ start_report(svn_ra_serf__xml_parser_t *
       full_path = svn_relpath_join(info->dir->name, file_name, tmppool);
 
       SVN_ERR(info->dir->update_editor->delete_entry(full_path,
-                                                     SVN_INVALID_REVNUM,
+                                                     delete_rev,
                                                      info->dir->dir_baton,
                                                      tmppool));
 



Mime
View raw message