~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to subversion/libsvn_subr/xml.c

  • Committer: Package Import Robot
  • Author(s): James McCoy, Peter Samuelson, James McCoy
  • Date: 2014-01-12 19:48:33 UTC
  • mfrom: (0.2.10)
  • Revision ID: package-import@ubuntu.com-20140112194833-w3axfwksn296jn5x
Tags: 1.8.5-1
[ Peter Samuelson ]
* New upstream release.  (Closes: #725787) Rediff patches:
  - Remove apr-abi1 (applied upstream), rename apr-abi2 to apr-abi
  - Remove loosen-sqlite-version-check (shouldn't be needed)
  - Remove java-osgi-metadata (applied upstream)
  - svnmucc prompts for a changelog if none is provided. (Closes: #507430)
  - Remove fix-bdb-version-detection, upstream uses "apu-config --dbm-libs"
  - Remove ruby-test-wc (applied upstream)
  - Fix “svn diff -r N file” when file has svn:mime-type set.
    (Closes: #734163)
  - Support specifying an encoding for mod_dav_svn's environment in which
    hooks are run.  (Closes: #601544)
  - Fix ordering of “svnadmin dump” paths with certain APR versions.
    (Closes: #687291)
  - Provide a better error message when authentication fails with an
    svn+ssh:// URL.  (Closes: #273874)
  - Updated Polish translations.  (Closes: #690815)

[ James McCoy ]
* Remove all traces of libneon, replaced by libserf.
* patches/sqlite_3.8.x_workaround: Upstream fix for wc-queries-test test
  failurse.
* Run configure with --with-apache-libexecdir, which allows removing part of
  patches/rpath.
* Re-enable auth-test as upstream has fixed the problem of picking up
  libraries from the environment rather than the build tree.
  (Closes: #654172)
* Point LD_LIBRARY_PATH at the built auth libraries when running the svn
  command during the build.  (Closes: #678224)
* Add a NEWS entry describing how to configure mod_dav_svn to understand
  UTF-8.  (Closes: #566148)
* Remove ancient transitional package, libsvn-ruby.
* Enable compatibility with Sqlite3 versions back to Wheezy.
* Enable hardening flags.  (Closes: #734918)
* patches/build-fixes: Enable verbose build logs.
* Build against the default ruby version.  (Closes: #722393)

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include <assert.h>
28
28
 
29
29
#include "svn_private_config.h"         /* for SVN_HAVE_OLD_EXPAT */
 
30
#include "svn_hash.h"
30
31
#include "svn_pools.h"
31
32
#include "svn_xml.h"
32
33
#include "svn_error.h"
115
116
  const char *p = data, *q;
116
117
 
117
118
  if (*outstr == NULL)
118
 
    *outstr = svn_stringbuf_create("", pool);
 
119
    *outstr = svn_stringbuf_create_empty(pool);
119
120
 
120
121
  while (1)
121
122
    {
277
278
  if (q == end)
278
279
    return string;
279
280
 
280
 
  outstr = svn_stringbuf_create("", pool);
 
281
  outstr = svn_stringbuf_create_empty(pool);
281
282
  while (1)
282
283
    {
283
284
      q = p;
455
456
/*** Attribute walking. ***/
456
457
 
457
458
const char *
458
 
svn_xml_get_attr_value(const char *name, const char **atts)
 
459
svn_xml_get_attr_value(const char *name, const char *const *atts)
459
460
{
460
461
  while (atts && (*atts))
461
462
    {
479
480
{
480
481
 
481
482
  if (*str == NULL)
482
 
    *str = svn_stringbuf_create("", pool);
 
483
    *str = svn_stringbuf_create_empty(pool);
483
484
  svn_stringbuf_appendcstr(*str, "<?xml version=\"1.0\"");
484
485
  if (encoding)
485
486
    {
533
534
  while ((key = va_arg(ap, char *)) != NULL)
534
535
    {
535
536
      const char *val = va_arg(ap, const char *);
536
 
      apr_hash_set(ht, key, APR_HASH_KEY_STRING, val);
 
537
      svn_hash_sets(ht, key, val);
537
538
    }
538
539
 
539
540
  return ht;
646
647
                            const char *tagname)
647
648
{
648
649
  if (*str == NULL)
649
 
    *str = svn_stringbuf_create("", pool);
 
650
    *str = svn_stringbuf_create_empty(pool);
650
651
 
651
652
  svn_stringbuf_appendcstr(*str, "</");
652
653
  svn_stringbuf_appendcstr(*str, tagname);