Author: gbg
Date: Thu Jul 11 22:51:05 2013
New Revision: 1502389

URL: http://svn.apache.org/r1502389
Log:
On the invoke-diff-cmd branch: Reverse deprecatation of
svn_io_run_diff2() leaving the new code in place.

* subversion/include/svn_io.h
  (svn_io_run_diff2): Remove deprecation label.

* subversion/libsvn_subr/deprecated.c
  (svn_io_run_diff2): Move function to subversion/libsvn_subr/io.c. 

* subversion/libsvn_subr/io.c 
  (svn_io_run_diff2): Place function moved from deprecated.c.  Fix
    rogue variable.

Modified:
    subversion/branches/invoke-diff-cmd-feature/subversion/include/svn_io.h
    
subversion/branches/invoke-diff-cmd-feature/subversion/libsvn_subr/deprecated.c
    subversion/branches/invoke-diff-cmd-feature/subversion/libsvn_subr/io.c

Modified: 
subversion/branches/invoke-diff-cmd-feature/subversion/include/svn_io.h
URL: 
http://svn.apache.org/viewvc/subversion/branches/invoke-diff-cmd-feature/subversion/include/svn_io.h?rev=1502389&r1=1502388&r2=1502389&view=diff
==============================================================================
--- subversion/branches/invoke-diff-cmd-feature/subversion/include/svn_io.h 
(original)
+++ subversion/branches/invoke-diff-cmd-feature/subversion/include/svn_io.h Thu 
Jul 11 22:51:05 2013
@@ -1800,9 +1800,7 @@ svn_io_run_cmd(const char *path,
  * @a diff_cmd must be non-NULL.
  *
  * Do all allocation in @a pool.
- * @since New in 1.6.0.
- * @deprecated Provided for backwards compatibility with the 1.6 API. */
-SVN_DEPRECATED
+ * @since New in 1.6.0. */
 svn_error_t *
 svn_io_run_diff2(const char *dir,
                  const char *const *user_args,

Modified: 
subversion/branches/invoke-diff-cmd-feature/subversion/libsvn_subr/deprecated.c
URL: 
http://svn.apache.org/viewvc/subversion/branches/invoke-diff-cmd-feature/subversion/libsvn_subr/deprecated.c?rev=1502389&r1=1502388&r2=1502389&view=diff
==============================================================================
--- 
subversion/branches/invoke-diff-cmd-feature/subversion/libsvn_subr/deprecated.c 
(original)
+++ 
subversion/branches/invoke-diff-cmd-feature/subversion/libsvn_subr/deprecated.c 
Thu Jul 11 22:51:05 2013
@@ -1302,53 +1302,3 @@ svn_subst_build_keywords(svn_subst_keywo
 }
 
 
-svn_error_t *
-svn_io_run_diff2(const char *dir,
-                 const char *const *user_args,
-                 int num_user_args,
-                 const char *label1,
-                 const char *label2,
-                 const char *from,
-                 const char *to,
-                 int *pexitcode,
-                 apr_file_t *outfile,
-                 apr_file_t *errfile,
-                 const char *diff_cmd,
-                 apr_pool_t *pool)
-{
-  svn_stringbuf_t *com;
-  com = svn_stringbuf_create_empty(pool);
-  svn_stringbuf_appendcstr(com, diff_cmd);
-  svn_stringbuf_appendcstr(com, " ");
-
-  if (user_args != NULL)
-    {
-      int j;
-      for (j = 0; j < num_user_args; ++j) 
-        {
-          svn_stringbuf_appendcstr(com, user_args[j]);
-          svn_stringbuf_appendcstr(com, " ");
-        }
-    }
-  else /* assume -u if the user didn't give us any args */
-    svn_stringbuf_appendcstr(com, "-u "); 
-
-  if (label1 != NULL)
-    svn_stringbuf_appendcstr(com,"-L ;l1 ");
-
-  if (label2 != NULL)
-    svn_stringbuf_appendcstr(com,"-L ;l2 ");
-
-  svn_stringbuf_appendcstr(com,";f1 ;f2 "); 
-
-  return diff2_err = svn_io_run_external_diff(dir,
-                                              label1,
-                                              label2,
-                                              from,
-                                              to,
-                                              pexitcode,
-                                              outfile,
-                                              errfile,
-                                              com->data,
-                                              pool);
-}

Modified: 
subversion/branches/invoke-diff-cmd-feature/subversion/libsvn_subr/io.c
URL: 
http://svn.apache.org/viewvc/subversion/branches/invoke-diff-cmd-feature/subversion/libsvn_subr/io.c?rev=1502389&r1=1502388&r2=1502389&view=diff
==============================================================================
--- subversion/branches/invoke-diff-cmd-feature/subversion/libsvn_subr/io.c 
(original)
+++ subversion/branches/invoke-diff-cmd-feature/subversion/libsvn_subr/io.c Thu 
Jul 11 22:51:05 2013
@@ -2955,6 +2955,57 @@ svn_io_run_external_diff(const char *dir
 }
 
 svn_error_t *
+svn_io_run_diff2(const char *dir,
+                 const char *const *user_args,
+                 int num_user_args,
+                 const char *label1,
+                 const char *label2,
+                 const char *from,
+                 const char *to,
+                 int *pexitcode,
+                 apr_file_t *outfile,
+                 apr_file_t *errfile,
+                 const char *diff_cmd,
+                 apr_pool_t *pool)
+{
+  svn_stringbuf_t *com;
+  com = svn_stringbuf_create_empty(pool);
+  svn_stringbuf_appendcstr(com, diff_cmd);
+  svn_stringbuf_appendcstr(com, " ");
+
+  if (user_args != NULL)
+    {
+      int j;
+      for (j = 0; j < num_user_args; ++j) 
+        {
+          svn_stringbuf_appendcstr(com, user_args[j]);
+          svn_stringbuf_appendcstr(com, " ");
+        }
+    }
+  else /* assume -u if the user didn't give us any args */
+    svn_stringbuf_appendcstr(com, "-u "); 
+
+  if (label1 != NULL)
+    svn_stringbuf_appendcstr(com,"-L ;l1 ");
+
+  if (label2 != NULL)
+    svn_stringbuf_appendcstr(com,"-L ;l2 ");
+
+  svn_stringbuf_appendcstr(com,";f1 ;f2 "); 
+
+  return svn_io_run_external_diff(dir,
+                                  label1,
+                                  label2,
+                                  from,
+                                  to,
+                                  pexitcode,
+                                  outfile,
+                                  errfile,
+                                  com->data,
+                                  pool);
+}
+
+svn_error_t *
 svn_io_run_diff3_3(int *exitcode,
                    const char *dir,
                    const char *mine,


Reply via email to