subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r1844353 - /subversion/trunk/subversion/svnrdump/load_editor.c
Date Fri, 19 Oct 2018 15:58:51 GMT
Author: julianfoad
Date: Fri Oct 19 15:58:51 2018
New Revision: 1844353

URL: http://svn.apache.org/viewvc?rev=1844353&view=rev
Log:
Tweak for readability.

For issue SVN-4780: Factor out the dumpstream loader editor driver.

* subversion/svnrdump/load_editor.c
  (set_revision_property,
   close_revision): Say what we mean directly.

Modified:
    subversion/trunk/subversion/svnrdump/load_editor.c

Modified: subversion/trunk/subversion/svnrdump/load_editor.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnrdump/load_editor.c?rev=1844353&r1=1844352&r2=1844353&view=diff
==============================================================================
--- subversion/trunk/subversion/svnrdump/load_editor.c (original)
+++ subversion/trunk/subversion/svnrdump/load_editor.c Fri Oct 19 15:58:51 2018
@@ -809,7 +809,7 @@ set_revision_property(void *baton,
         svn_hash_sets(rb->revprop_table,
                       apr_pstrdup(rb->pool, name), value);
     }
-  else if (rb->rev_offset == -1
+  else if (rb->head_rev_before_commit == 0
            && ! svn_hash_gets(rb->pb->skip_revprops, name))
     {
       /* Special case: set revision 0 properties directly (which is
@@ -1083,7 +1083,7 @@ close_revision(void *baton)
     {
       committed_rev = get_revision_mapping(rb->pb->rev_map, rb->rev);
     }
-  else if (rb->rev_offset == -1)
+  else if (rb->head_rev_before_commit == 0)
     {
       committed_rev = 0;
     }



Mime
View raw message