subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r1697868 - /subversion/branches/move-tracking-2/subversion/svnmover/svnmover.c
Date Wed, 26 Aug 2015 09:54:32 GMT
Author: julianfoad
Date: Wed Aug 26 09:54:31 2015
New Revision: 1697868

URL: http://svn.apache.org/r1697868
Log:
On the 'move-tracking-2' branch: Fix an error code path that is not
currently triggerable.

* subversion/svnmover/svnmover.c
  (svn_branch_find_predecessor_el_rev): Properly return a null result.

Modified:
    subversion/branches/move-tracking-2/subversion/svnmover/svnmover.c

Modified: subversion/branches/move-tracking-2/subversion/svnmover/svnmover.c
URL: http://svn.apache.org/viewvc/subversion/branches/move-tracking-2/subversion/svnmover/svnmover.c?rev=1697868&r1=1697867&r2=1697868&view=diff
==============================================================================
--- subversion/branches/move-tracking-2/subversion/svnmover/svnmover.c (original)
+++ subversion/branches/move-tracking-2/subversion/svnmover/svnmover.c Wed Aug 26 09:54:31
2015
@@ -2192,7 +2192,10 @@ svn_branch_find_predecessor_el_rev(svn_b
   const char *branch_id;
 
   if (old_el_rev->rev <= 0)
-    return NULL;
+    {
+      *new_el_rev_p = NULL;
+      return SVN_NO_ERROR;
+    }
 
   branch_id = svn_branch_get_id(old_el_rev->branch, result_pool);
   SVN_ERR(svn_branch_repos_find_el_rev_by_id(new_el_rev_p,



Mime
View raw message