]> git.pld-linux.org Git - packages/subversion.git/commitdiff
- outdated (dropped by arekm)
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 23 Oct 2004 13:58:18 +0000 (13:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    subversion-log-xml.patch -> 1.2

subversion-log-xml.patch [deleted file]

diff --git a/subversion-log-xml.patch b/subversion-log-xml.patch
deleted file mode 100644 (file)
index 6ddcb60..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-Index: subversion/clients/cmdline/log-cmd.c
-===================================================================
---- subversion/clients/cmdline/log-cmd.c       (wersja 11180)
-+++ subversion/clients/cmdline/log-cmd.c       (wersja 11181)
-@@ -23,6 +23,7 @@
- /*** Includes. ***/
- #define APR_WANT_STRFUNC
-+#define APR_WANT_STDIO
- #include <apr_want.h>
- #include "svn_wc.h"
-@@ -76,7 +77,29 @@
-   return count;
- }
-+static svn_error_t *
-+error_checked_fputs(const char *string, FILE* stream)
-+{
-+  /* This function is equal to svn_cmdline_fputs() minus
-+     the utf8->local encoding translation */
-+  /* On POSIX systems, errno will be set on an error in fputs, but this might
-+     not be the case on other platforms.  We reset errno and only
-+     use it if it was set by the below fputs call.  Else, we just return
-+     a generic error. */
-+  errno = 0;
-+
-+  if (fputs (string, stream) == EOF)
-+    {
-+      if (errno)
-+        return svn_error_wrap_apr (errno, _("Write error"));
-+      else
-+        return svn_error_create (SVN_ERR_IO_WRITE_ERROR, NULL, NULL);
-+    }
-+
-+  return SVN_NO_ERROR;
-+}
-+
- /* Baton for log_message_receiver() and log_message_receiver_xml(). */
- struct log_receiver_baton
- {
-@@ -416,7 +439,7 @@
-   /* </logentry> */
-   svn_xml_make_close_tag (&sb, pool, "logentry");
--  SVN_ERR (svn_cmdline_printf (pool, "%s", sb->data));
-+  SVN_ERR (error_checked_fputs (sb->data, stdout));
-   return SVN_NO_ERROR;
- }
-@@ -497,7 +520,7 @@
-           /* "<log>" */
-           svn_xml_make_open_tag (&sb, pool, svn_xml_normal, "log", NULL);
--          SVN_ERR (svn_cmdline_printf (pool, "%s", sb->data));
-+          SVN_ERR (error_checked_fputs (sb->data, stdout));
-         }
-       
-       SVN_ERR (svn_client_log2 (targets,
-@@ -518,7 +541,7 @@
-           /* "</log>" */
-           svn_xml_make_close_tag (&sb, pool, "log");
--          SVN_ERR (svn_cmdline_printf (pool, "%s", sb->data));
-+          SVN_ERR (error_checked_fputs (sb->data, stdout));
-         }
-     }
-   else  /* default output format */
This page took 0.050673 seconds and 4 git commands to generate.