subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1525467 - in /subversion/trunk/tools/server-side: svn-populate-node-origins-index.c svn-rep-sharing-stats.c
Date Sun, 22 Sep 2013 22:37:53 GMT
Author: stefan2
Date: Sun Sep 22 22:37:53 2013
New Revision: 1525467

URL: http://svn.apache.org/r1525467
Log:
Update tooling to use new log APIs.

* tools/server-side/svn-populate-node-origins-index.c
  (index_revision_adds): use fastest option and handle moves just like adds

* tools/server-side/svn-rep-sharing-stats.c
  (process_one_revision): use the fastest option as we don't use the path list

Modified:
    subversion/trunk/tools/server-side/svn-populate-node-origins-index.c
    subversion/trunk/tools/server-side/svn-rep-sharing-stats.c

Modified: subversion/trunk/tools/server-side/svn-populate-node-origins-index.c
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/server-side/svn-populate-node-origins-index.c?rev=1525467&r1=1525466&r2=1525467&view=diff
==============================================================================
--- subversion/trunk/tools/server-side/svn-populate-node-origins-index.c (original)
+++ subversion/trunk/tools/server-side/svn-populate-node-origins-index.c Sun Sep 22 22:37:53
2013
@@ -77,7 +77,8 @@ index_revision_adds(int *count, svn_fs_t
 
   *count = 0;
   SVN_ERR(svn_fs_revision_root(&root, fs, revision, pool));
-  SVN_ERR(svn_fs_paths_changed2(&changes, root, pool));
+  SVN_ERR(svn_fs_paths_changed3(&changes, root,
+                                svn_move_behavior_explicit_moves, pool));
 
   /* No paths changed in this revision?  Nothing to do.  */
   if (apr_hash_count(changes) == 0)
@@ -94,7 +95,9 @@ index_revision_adds(int *count, svn_fs_t
       apr_hash_this(hi, &path, NULL, &val);
       change = val;
       if ((change->change_kind == svn_fs_path_change_add)
-          || (change->change_kind == svn_fs_path_change_replace))
+          || (change->change_kind == svn_fs_path_change_replace)
+          || (change->change_kind == svn_fs_path_change_move)
+          || (change->change_kind == svn_fs_path_change_movereplace))
         {
           if (! (change->copyfrom_path
                             && SVN_IS_VALID_REVNUM(change->copyfrom_rev)))

Modified: subversion/trunk/tools/server-side/svn-rep-sharing-stats.c
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/server-side/svn-rep-sharing-stats.c?rev=1525467&r1=1525466&r2=1525467&view=diff
==============================================================================
--- subversion/trunk/tools/server-side/svn-rep-sharing-stats.c (original)
+++ subversion/trunk/tools/server-side/svn-rep-sharing-stats.c Sun Sep 22 22:37:53 2013
@@ -269,7 +269,9 @@ process_one_revision(svn_fs_t *fs,
 
   /* Get the changed paths. */
   SVN_ERR(svn_fs_revision_root(&rev_root, fs, revnum, scratch_pool));
-  SVN_ERR(svn_fs_paths_changed2(&paths_changed, rev_root, scratch_pool));
+  SVN_ERR(svn_fs_paths_changed3(&paths_changed, rev_root,
+                                svn_move_behavior_explicit_moves,
+                                scratch_pool));
 
   /* Iterate them. */
   /* ### use iterpool? */



Mime
View raw message