Index: subversion/libsvn_wc/adm_ops.c
===================================================================
--- subversion/libsvn_wc/adm_ops.c      (revision 15882)
+++ subversion/libsvn_wc/adm_ops.c      (working copy)
@@ -317,8 +317,11 @@
 
       /* If the revert file exists it needs to be deleted when the file
        * is committed. */
-      revert_file = svn_wc__text_revert_path (path, FALSE, pool);
-      SVN_ERR (svn_io_check_path (revert_file, &kind, pool));
+      revert_file = svn_wc__text_revert_path (base_name, FALSE, pool);
+
+      SVN_ERR (svn_io_check_path (svn_path_join (svn_wc_adm_access_path (adm_access),
+                                                 revert_file, pool),
+                                  &kind, pool));
       if (kind == svn_node_file)
         {
           svn_xml_make_open_tag (&logtags, pool, svn_xml_self_closing,
@@ -1430,6 +1433,7 @@
