You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2015/09/16 22:59:25 UTC

svn commit: r1703462 - /subversion/branches/move-tracking-2/subversion/svnmover/svnmover.c

Author: julianfoad
Date: Wed Sep 16 20:59:25 2015
New Revision: 1703462

URL: http://svn.apache.org/r1703462
Log:
On the 'move-tracking-2' branch: Correct the notification for 'svnmover put' when
the file already existed.

* subversion/svnmover/svnmover.c
  (do_put_file): Notify code 'M' instead of code 'A' when the file already existed.

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=1703462&r1=1703461&r2=1703462&view=diff
==============================================================================
--- subversion/branches/move-tracking-2/subversion/svnmover/svnmover.c (original)
+++ subversion/branches/move-tracking-2/subversion/svnmover/svnmover.c Wed Sep 16 20:59:25 2015
@@ -2147,6 +2147,8 @@ do_put_file(svn_editor3_t *editor,
                                 branch_id, file_el_rev->eid,
                                 parent_eid, name,
                                 payload));
+      notify_v("M    %s",
+               el_rev_id_to_path(file_el_rev, scratch_pool));
     }
   else
     {
@@ -2160,9 +2162,9 @@ do_put_file(svn_editor3_t *editor,
                                 parent_eid, name,
                                 payload));
       file_el_rev->eid = new_eid;
+      notify_v("A    %s",
+               el_rev_id_to_path(file_el_rev, scratch_pool));
     }
-  notify_v("A    %s",
-           el_rev_id_to_path(file_el_rev, scratch_pool));
   return SVN_NO_ERROR;
 }