Checkout Tools
  • last updated 6 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fix various typos detected by codespell

* libsvn_client/add.c, libsvn_client/blame.c, libsvn_client/commit_util.c,

libsvn_client/conflicts.c, libsvn_client/copy.c, libsvn_client/diff.c,

libsvn_client/export.c, libsvn_client/import.c, libsvn_client/merge.c,

libsvn_client/mergeinfo.c, libsvn_client/mergeinfo.h, libsvn_client/patch.c,

libsvn_client/switch.c, libsvn_client/update.c, libsvn_delta/branch_compat.c,

libsvn_delta/compat.c, libsvn_delta/compose_delta.c, libsvn_delta/svndiff.c,

libsvn_delta/xdelta.c, libsvn_diff/deprecated.c, libsvn_diff/diff_file.c,

libsvn_fs/fs-loader.c, libsvn_fs_base/bdb/locks-table.c, libsvn_fs_base/fs.c,

libsvn_fs_base/key-gen.c, libsvn_fs_base/notes/fs-history,

libsvn_fs_base/reps-strings.c, libsvn_fs_base/tree.c,

libsvn_fs_fs/cached_data.c, libsvn_fs_fs/hotcopy.c, libsvn_fs_fs/index.c,

libsvn_fs_fs/low_level.c, libsvn_fs_fs/pack.c, libsvn_fs_fs/structure,

libsvn_fs_fs/temp_serializer.c, libsvn_fs_fs/transaction.c,

libsvn_fs_fs/tree.c, libsvn_fs_fs/util.h, libsvn_fs_x/cached_data.c,

libsvn_fs_x/caching.c, libsvn_fs_x/hotcopy.c, libsvn_fs_x/id.h,

libsvn_fs_x/index.c, libsvn_fs_x/low_level.c, libsvn_fs_x/pack.c,

libsvn_fs_x/rev_file.c, libsvn_fs_x/structure, libsvn_fs_x/temp_serializer.c,

libsvn_fs_x/transaction.c, libsvn_fs_x/tree.c, libsvn_fs_x/util.h,

libsvn_ra/ra_loader.c, libsvn_ra/ra_loader.h, libsvn_ra/util.c,

libsvn_ra/wrapper_template.h, libsvn_ra_local/ra_plugin.c,

libsvn_ra_serf/commit.c, libsvn_ra_serf/get_file.c,

libsvn_ra_serf/property.c, libsvn_ra_serf/ra_serf.h, libsvn_ra_serf/update.c,

libsvn_ra_serf/util.c, libsvn_ra_svn/client.c, libsvn_ra_svn/cyrus_auth.c,

libsvn_ra_svn/marshal.c, libsvn_repos/authz_parse.c, libsvn_repos/commit.c,

libsvn_repos/compat.c, libsvn_repos/hooks.c, libsvn_repos/load.c,

libsvn_repos/log.c, libsvn_repos/notify.c, libsvn_repos/repos.c,

libsvn_repos/repos.h, libsvn_subr/cache-memcache.c, libsvn_subr/cmdline.c,

libsvn_subr/config_file.c, libsvn_subr/date.c, libsvn_subr/gpg_agent.c,

libsvn_subr/io.c, libsvn_subr/object_pool.c, libsvn_subr/path.c,

libsvn_subr/prompt.c, libsvn_subr/string.c, libsvn_subr/sysinfo.c,

libsvn_subr/temp_serializer.c, libsvn_subr/utf.c, libsvn_subr/utf8proc.c,

libsvn_subr/version.c, libsvn_subr/win32_xlate.c, libsvn_subr/x509parse.c,

libsvn_wc/conflicts.c, libsvn_wc/conflicts.h, libsvn_wc/copy.c,

libsvn_wc/lock.c, libsvn_wc/wc_db.c, libsvn_wc/wc_db.h,

libsvn_wc/wc_db_private.h:

(): Spelling fixes

  1. … 97 more files in changeset.
* subversion/libsvn_subr/config_file.c (svn_config_ensure):

Update the link to Python's ConfigParser module documentation.

Improve documentation of 'store-*' options in the 'servers' config file.

* subversion/libsvn_subr/config_file.c

(svn_config_ensure): In the docs for the various 'store-*' options in

the 'servers' config file:

- clarify that each option refers to *new* credentials (previously

mentioned in a following note);

- deduplicate and so make consistent the notes about deleting stored

credentials;

- mention as first choice the new 'svn auth --remove' way of doing this;

- refer to a more directly relevant section of the book;

- put the book URL all on one (over-long) line to improve its usability.

* subversion/libsvn_subr/config_file.c

(svn_config_ensure): Add 'http-auth-types' to list of supported options in

the 'servers' file template.

Fix a bug in the config parser that caused it to strip leading characters

from value continuation lines.

* subversion/libsvn_subr/config_file.c (parse_value_continuation_lines):

Return the last read char to the buffer before reading the whole line.

* subversion/tests/libsvn_subr/config-test.cfg (m): New multi-line option.

* subversion/tests/libsvn_subr/config-test.c (config_keys, config_values):

Add expected values for the new multi-line option in the test data.

Tested by: danielsh

  1. … 2 more files in changeset.
Fix CVE-2017-9800.

See: https://subversion.apache.org/security/CVE-2017-0800-advisory.txt

* subversion/libsvn_ra_svn/client.c

(svn_ctype.h): Include.

(find_tunnel_agent): Pass a "--" end-of-options guard to ssh.

Expect the 'hostinfo' parameter to be URI-decoded.

(is_valid_hostinfo): New.

(ra_svn_open): Validate the hostname before using it.

* subversion/libsvn_subr/config_file.c

(svn_config_ensure): Update the example configuration likewise.

Patch by: philip

Review by: danielsh

stsp

astieger (earlier version)

  1. … 1 more file in changeset.
Add 'http-compression=auto' mode on the client, now used by default.

Following up on the recently added support for LZ4 compression, this patch

introduces the new possible 'auto' mode for our client 'http-compression'

configuration option, and starts using it by default.

The previously used default was 'http-compression=yes', and the new 'auto'

mode is a small, but an important tweak to its behavior. In the new mode,

the HTTP compression is still being used, but the negotiating is tweaked

to favor svndiff2 with LZ4 compression when working over local networks.

The reasoning behind this is that for local networks it probably makes sense

to favor compression speed of LZ4 instead of the better compression ratio

from zlib-5, which has been used previously.

To separate local and wide area networks, we use the connection latency of

the initial OPTIONS request obtained with serf_connection_get_latency().

* subversion/libsvn_subr/config_file.c

(svn_config_ensure): Document the new default and possible values of

the http-compression option.

* subversion/libsvn_ra_serf/ra_serf.h

(svn_ra_serf__session_t.using_compression): Turn into a tristate field.

(svn_ra_serf__session_t.conn_latency): New field.

(svn_ra_serf__is_local_network): Declare new helper function.

(svn_ra_serf__setup_svndiff_accept_encoding): Accept a session instead

of the 'using_compression' boolean argument.

* subversion/libsvn_ra_serf/util.c

(svn_ra_serf__is_local_network): Implement this new function.

(svn_ra_serf__setup_svndiff_accept_encoding): Tweak the Accept-Encoding

to indicate that we'd like to see svndiff2 with http-compression=auto

and when working over a local network. Otherwise, when using compression,

indicate both svndiff2 and svndiff1 support, but tell the server that we

favor svndiff1.

(setup_request): Properly handle the 'using_compression' field, which

is now a tristate.

* subversion/libsvn_ra_serf/serf.c

(load_config): Get the compression setting as a tristate.

(svn_ra_serf__open): Initialize the connection latency to default

value before we make the initial OPTIONS request.

(ra_serf_dup_session): Add placeholder comment for the new field.

* subversion/libsvn_ra_serf/options.c

(options_response_handler): Remember the connection latency in the

session.

* subversion/libsvn_ra_serf/commit.c

(negotiate_put_encoding): Rework to support new http-compression=auto

mode. Update or rewrite the related comments.

* subversion/libsvn_ra_serf/blame.c

(blame_context_t): Store session instead of the 'using_compression' field.

(setup_headers): Update call to svn_ra_serf__setup_svndiff_accept_encoding().

(svn_ra_serf__get_file_revs): Remember the used session in context.

* subversion/libsvn_ra_serf/replay.c

(revision_report_t): Store session instead of the 'using_compression' field.

(setup_headers): Update call to svn_ra_serf__setup_svndiff_accept_encoding().

(svn_ra_serf__replay_range): Remember the used session in context.

* subversion/libsvn_ra_serf/update.c

(fetch_ctx_t): Store session instead of the 'using_compression' field.

(headers_fetch): Update call to svn_ra_serf__setup_svndiff_accept_encoding().

Properly handle the 'using_compression' field, which is now a tristate.

(fetch_for_file): Remember the used session in the fetch context.

(setup_update_report_headers): Update call to

svn_ra_serf__setup_svndiff_accept_encoding().

* subversion/mod_dav_svn/repos.c

(get_svndiff_version): New helper function.

(negotiate_encoding_prefs): Tweak the negotiation logic. Only override

the client's preference if it supports svndiff2 and SVNCompressionLevel

is set to 1. In all other cases, select the svndiff format that the

client prefers to see (the one with the largest ;q= value in the Accept-

Encoding header).

  1. … 10 more files in changeset.
Merging branches/authzperf to /trunk and remove BRANCH-README.
  1. … 35 more files in changeset.
Convert assertion failure to error if configuration file contains just one

0xEE character.

* subversion/libsvn_subr/config_file.c

(parse_context_t): Add HIT_STREAM_EOF member.

(parser_getc): Set CTX->HIT_STREAM_EOF to TRUE once we hit end-of-file and

do not attempt to read from stream after that.

(skip_bom): Extend SVN_ERR_ASSERT() condition. Check for subsequent BOM

characters only if we have more than two bytes in buffer remaining.

* subversion/tests/libsvn_subr/config-test.c

(test_invalid_bom): New test.

(test_funcs): Add test_invalid_bom test to list.

  1. … 1 more file in changeset.
Fix issue #4584, "Non-canonical $HOME crashes GPG-agent support code", in a

better way than r1691928.

* subversion/include/svn_user.h,

subversion/libsvn_subr/user.c

(svn_user_get_homedir): Always return a canonical path.

* subversion/libsvn_subr/config_file.c

(svn_config_get_user_config_path): No longer canonicalize the result here.

* subversion/libsvn_subr/gpg_agent.c

(find_running_gpg_agent): No longer canonicalize the result here.

  1. … 3 more files in changeset.
* subversion/libsvn_subr/config_file.c

(svn_config_ensure):

Following up on r1678739, remove more references to neon.

* subversion/libsvn_subr/config_file.c

(svn_config_ensure): Remove long outdated comment line.

Revert the changes in [1] that added the new "http-pipelining" option.

The issue that triggered addition of this option - serf issue 135: ssl

renegotiation breaks when there are pipelined requests - has been solved

in serf directly.

More specifically: serf 1.4 will automatically disable http pipelining for

connections to a server that initiates a SSL renegotiation.

[1] r1619072, r1619074, r1619079.

  1. … 5 more files in changeset.
* subversion/libsvn_subr/config_file.c

(svn_config_ensure): Document the purpose of the new http-pipelining option.

Add an option "http-pipelining" to the servers configuration, so that a user

can disable HTTP pipelining in case that causes problems, e.g. during SSL

renegotiation triggered by the server to request a client certificate.

* subversion/include/svn_config.h

(SVN_CONFIG_OPTION_HTTP_PIPELINING): New boolean config option.

* subversion/libsvn_ra_serf/ra_serf.h

(struct svn_ra_serf__session_t): New member variable http_pipelining.

* subversion/libsvn_ra_serf/serf.c

(load_config): Load the value of the new option from the servers file. If not

set, use 'HTTP pipelining is enabled' by default.

(svn_ra_serf__open,

ra_serf_dup_session): Set the max. nr. of outstanding requests to 1

if HTTP pipelining is disabled.

* subversion/libsvn_ra_serf/update.c

(open_connection_if_needed): Set the max. nr. of outstanding requests to 1

if HTTP pipelining is disabled.

* subversion/libsvn_subr/config_file.c

(svn_config_ensure): Add the 'http-pipelining' option in the comment section

of the initial servers file.

  1. … 4 more files in changeset.
Allow clients to configure the working copy SQLite busy

timeout, this can be useful when exclusive locking is

enabled.

* subversion/include/private/svn_sqlite.h

(svn_sqlite__open): Add timeout parameter.

* subversion/include/svn_config.h

(SVN_CONFIG_OPTION_SQLITE_TIMEOUT): New.

* subversion/libsvn_subr/config_file.c

(svn_config_ensure): Describe new config option.

* subversion/libsvn_subr/sqlite.c

(internal_open, svn_sqlite__open): Add timeout parameter.

(svn_sqlite__hotcopy): Pass default timeout.

* subversion/libsvn_wc/wc_db_private.h

(struct svn_wc__db_t): Add timeout member.

(svn_wc__db_util_open_db): Add timeout parameter.

* subversion/libsvn_wc/wc_db_util.c

(svn_wc__db_util_open_db): Add timeout parameter.

* subversion/libsvn_wc/wc_db_wcroot.c

(svn_wc__db_open): Get timeout from config.

(svn_wc__db_wcroot_parse_local_abspath): Pass timeout.

* subversion/libsvn_wc/wc_db.c

(create_db): Add timeout parameter.

(svn_wc__db_init, svn_wc__db_upgrade_begin,

svn_wc__db_bump_format): Pass default timeout.

* subversion/libsvn_fs_fs/rep-cache.c

* subversion/libsvn_fs_x/rep-cache.c

(open_rep_cache): Pass default timeout.

* subversion/tests/libsvn_subr/sqlite-test.c

(open_db): Pass default timeout.

* subversion/tests/libsvn_wc/op-depth-test.c

(open_wc_db): Pass default timeout.

* subversion/tests/libsvn_wc/utils.c

(svn_test__create_fake_wc): Pass default timeout.

  1. … 12 more files in changeset.
Reduce buffer size used for parsing config files. There no reason to waste

100kb of memory -- 16kb is enough to avoid I/O overhead.

Approved by: rhuijben

* subversion/libsvn_subr/config_file.c

(parse_context_t): Use SVN__STREAM_CHUNK_SIZE (16kb) instead of

deprecated SVN_STREAM_CHUNK_SIZE (100kb) for PARSER_BUFFER member.

* subversion/libsvn_subr/config_file.c

(parse_option, parse_section_name,

svn_config__parse_file,

svn_config__parse_stream): Mark error messages for translation.

Provide config:miscellany:enable-magic-file to control the use of

libmagic. There are environment variables that do this already but

they are not specific to Subversion and affect other applications.

* subversion/include/svn_config.h

(SVN_CONFIG_OPTION_ENABLE_MAGIC_FILE): New.

* subversion/include/private/svn_magic.h

(svn_magic__init): Add config parameter.

* subversion/libsvn_subr/config_file.c

(svn_config_ensure): Document new setting.

* subversion/libsvn_subr/magic.c

(svn_magic__init): Check for enable-magic-file=no.

* subversion/libsvn_client/add.c

(add): Pass config to svn_magic__init.

* subversion/libsvn_client/import.c

(import): Pass config to svn_magic__init.

  1. … 5 more files in changeset.
Following up on r1561688, switch almost every caller of svn_stream_read() to

its successor svn_stream_read_full(). Do this to resolve many deprecation

warnings (and to avoid somebody else accidentally doing the invalid conversion

to svn_stream_read2()).

There are no functional changes as svn_stream_read() is a direct call to

svn_stream_read_full().

* subversion/libsvn_delta/svndiff.c

(read_one_byte): Update caller.

* subversion/libsvn_delta/text_delta.c

(txdelta_next_window,

tpush_write_handler,

apply_window,

svn_txdelta_send_stream): Update caller.

* subversion/libsvn_fs_base/lock.c

(svn_fs_base__get_locks): Update caller.

* subversion/libsvn_fs_fs/recovery.c

(read_handler_recover): Update caller.

* subversion/libsvn_fs_x/cached_data.c

(get_dir_contents): Update caller.

* subversion/libsvn_fs_x/pack.c

(write_reps_containers): Update caller.

* subversion/libsvn_repos/load.c

(read_key_or_val,

parse_text_block,

svn_repos_parse_dumpstream3): Update caller.

* subversion/libsvn_subr/config_file.c

(parser_getc): Update caller.

* subversion/libsvn_subr/hash.c

(svn_hash__read_entry):

* subversion/libsvn_subr/packed_data.c

(read_stream_uint,

read_stream_data,

svn_packed__data_read): Update caller.

* subversion/libsvn_subr/subst.c

(translated_stream_read,

read_handler_special): Update caller.

* subversion/libsvn_wc/adm_crawler.c

(read_handler_copy): Update caller.

* subversion/mod_dav_svn/repos.c

(deliver): Update caller.

* subversion/svnserve/serve.c

(get_file): Update caller.

* subversion/tests/libsvn_subr/spillbuf-test.c

(test_spillbuf_stream): Update caller.

* subversion/tests/libsvn_subr/stream-test.c

(test_stream_from_string,

test_stream_compressed,

test_stream_seek_stringbuf,

test_stream_seek_translated,

test_stream_compressed_empty_file): Update caller.

* subversion/tests/libsvn_wc/pristine-store-test.c

(pristine_delete_while_open): Update caller.

* subversion/tests/svn_test_fs.c

(svn_test__stream_to_string): Update caller.

* tools/server-side/fsfs-stats.c

(read_windows): Update caller.

  1. … 18 more files in changeset.
Make Subversion a bit more friendly to use in very restricted Windows user

scenarios: fix usage of our libraries in environments without a user profile.

This avoids a 20-30 second delay for each invocation in this use case, where

we used to try creating a default config in a directory where we are not

allowed to write.

* subversion/libsvn_subr/config_file.c

(svn_config__sys_config_path): Update caller.

(svn_config_get_user_config_path): Handle no homedir on Windows, like on

other platforms.

* subversion/libsvn_subr/config_impl.h

(svn_config__win_config_path): Update prototype.

* subversion/libsvn_subr/config_win.c

(includes): Move include to start of file.

(svn_config__win_config_path): Update prototype. Verify if we have a real

profile. Properly canonicalize the returned path to our internal style.

(SVN_REG_DEFAULT_NAME_SIZE): Update outdated comment. I think we fixed our

stringbuffer class to work on any platform now.

  1. … 2 more files in changeset.
* subversion/libsvn_subr/config_file.c

(skip_to_eoln): Following up on r1544716, document an assumption and

avoid reading after the buffer.

The out of bounds problem was

Found by: danielsh

* subversion/libsvn_subr/config_file.c

(skip_to_eoln): Newer FSFS config files contain lots of commentary.

Make the parser skip that quickly.

Use the new object pool API to implement an authz pool.

This requires a few minor extensions to existing authz and config APIs

to make the respective functionality available where needed.

* subversion/include/private/svn_repos_private.h

(svn_repos__authz_pool_t,

svn_repos__authz_pool_create,

svn_repos__authz_pool_get): declare new private API

* subversion/libsvn_repos/repos.h

(svn_repos__authz_validate): publish private API

* subversion/libsvn_repos/authz.c

(svn_authz_t): update commentary mentioning a new dependency

(authz_validate): rename to ...

(svn_repos__authz_validate): ... this

(svn_repos__authz_read,

svn_repos_authz_parse): update existing callers

* subversion/include/private/svn_subr_private.h

(svn_config__shallow_replace_section): declare new utility API

* subversion/libsvn_subr/config_file.c

(svn_config__shallow_replace_section): implement

* subversion/libsvn_repos/authz_pool.c

(): new file

(svn_authz_t

authz_object_t

svn_repos__authz_pool_t): define data types

(construct_key,

getter): utility functions

(svn_repos__authz_pool_create,

svn_repos__authz_pool_get): implement the new authz pool API

  1. … 5 more files in changeset.
Our svn_config_t struct contains temporary string buffers that will be

modified even in r/o access mode. Thus, it is inherently not thead-safe.

Introduce a private API function that will create shallow copies,

i.e. share the expensive config tree but use separate temp buffers.

* subversion/include/private/svn_subr_private.h

(svn_config__shallow_copy): declare new private API function

* subversion/libsvn_subr/config_file.c

(svn_config__shallow_copy): implement

* subversion/libsvn_repos/config_pool.c

(return_config_ref): return shallow copies to ensure the config

can be used safely from multiple threads

* subversion/tests/libsvn_repos/repos-test.c

(test_config_pool): since the config pool always returns a new root

struct we need to check whether the actual

config tree is the same

  1. … 3 more files in changeset.
Introduce a null-pointer constant that we can use as a termination sentinel

in variable argument lists. This avoids the ugliness of writing

"(char *) NULL" all over the place.

* subversion/include/svn_types.h (SVN_VA_NULL): New symbol.

* subversion/include/svn_dirent_uri.h (svn_dirent_join_many),

subversion/include/svn_path.h (svn_path_join_many),

subversion/include/svn_xml.h (svn_xml_make_open_tag):

Update docstrings, mentioning SVN_VA_NULL as the argument list terminator.

[Lots of implementation files]: Replace typecast-NULL with SVN_VA_NULL in

function calls with variable argument lists.

  1. … 89 more files in changeset.
Provide a simple test for the new r/o mode in config_t.

This requires the addition of private API to access internal state.

* subversion/include/private/svn_subr_private.h

(svn_config__is_read_only,

svn_config__is_expanded): declare new private API

* subversion/libsvn_subr/config.c

(svn_config__is_expanded): implement new API

* subversion/libsvn_subr/config_file.c

(svn_config__is_read_only): implement new API

* subversion/tests/libsvn_subr/config-test.c

(test_read_only_mode): new test case

(test_funcs): register it

  1. … 3 more files in changeset.
Cast NULL to (char *) in vararg calls to svn_dirent_join_many

and svn_path_join_many.

* subversion/libsvn_fs_fs/lock.c

(digest_path_from_digest, digest_path_from_path): here

* subversion/libsvn_fs_fs/transaction.c

(create_txn_dir, create_txn_dir_pre_1_5): here

* subversion/libsvn_fs_fs/util.c

(svn_fs_fs__path_rev_packed, svn_fs_fs__path_rev_shard,

svn_fs_fs__path_rev, svn_fs_fs__path_revprops_shard,

svn_fs_fs__path_revprops_pack_shard, svn_fs_fs__path_revprops,

svn_fs_fs__path_txn_dir, svn_fs_fs__path_txn_proto_rev,

svn_fs_fs__path_txn_proto_rev_lock, svn_fs_fs__path_node_origin): here

* subversion/libsvn_fs_x/lock.c

(digest_path_from_digest, digest_path_from_path): here

* subversion/libsvn_fs_x/transaction.c

(create_txn_dir): here

* subversion/libsvn_fs_x/util.c

(svn_fs_x__path_rev_packed, svn_fs_x__path_rev_shard,

svn_fs_x__path_revprops_shard,

svn_fs_x__path_revprops_pack_shard,

svn_fs_x__path_txn_dir, svn_fs_x__path_txn_proto_rev,

svn_fs_x__path_txn_proto_rev_lock, svn_fs_x__path_node_origin): here

* subversion/libsvn_subr/config_file.c

(svn_config__sys_config_path, svn_config_get_user_config_path): here

* subversion/libsvn_wc/adm_files.c

(svn_wc__adm_child): here

* subversion/libsvn_wc/upgrade.c

(build_lockfile_path, bump_to_29): here

* subversion/libsvn_wc/wc_db.c

(svn_wc__db_temp_wcroot_tempdir): here

* subversion/libsvn_wc/wc_db_pristine.c

(get_pristine_fname): here

* subversion/mod_authz_svn/mod_authz_svn.c

(get_access_conf): here

* subversion/tests/cmdline/entries-dump.c

(entries_dump): here

* subversion/tests/libsvn_client/client-test.c

(test_patch): here

* subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c

(pack_filesystem, pack_even_filesystem, recover_fully_packed): here

* subversion/tests/libsvn_fs_x/fs-x-pack-test.c

(pack_filesystem, pack_even_filesystem, recover_fully_packed): here

* subversion/tests/libsvn_subr/dirent_uri-test.c

(test_dirent_join): here

* subversion/tests/libsvn_subr/path-test.c

(test_path_join): here

* subversion/tests/libsvn_wc/entries-compat.c

(test_entries_alloc, test_stubs): here

  1. … 18 more files in changeset.
Add support for read-only access to svn_config_t. In read-only mode,

concurrent multi-threaded access to the same config data structure is

safe.

We introduce a simple private API function that allows us to switch

a config struct into r/o mode (one-way as the reversal seems dangerous).

Part of that transition is expanding all values to prevent internal

state change upon later read access.

The code expects r/o structs not to be written to and simply ignores

write ops in release mode. In debug mode, an assert()ion is triggered.

This is because the existing setter functions don't provide error

return values.

* subversion/libsvn_subr/config_impl.h

(svn_config_t): add r/o flag to structure

* subversion/include/private/svn_subr_private.h

(void svn_config__set_read_only): declare new private API function

* subversion/libsvn_subr/config_file.c

(expand_value,

expand_values_in_section): new transition utilities

(svn_config__set_read_only): implement new API

* subversion/libsvn_subr/config.c

(svn_config_create2): init new flag as well

(make_string_from_option): assert that this gets never called in r/o mode

(svn_config_set): in r/o mode no-op in release, assert() in debug

* subversion/libsvn_repos/config_pool.c

(expand_value,

expand_values_in_section,

expand_all_values): drop obsolete functions

(auto_parse): simply call new API to ensure correct r/o behavior

  1. … 4 more files in changeset.
Merge tristate-chunked-requests branch onto trunk.

subversion/include/svn_config.h

(SVN_CONFIG_OPTION_HTTP_DETECT_CHUNKING): Renamed to ...

(SVN_CONFIG_OPTION_HTTP_CHUNKED_REQUESTS): New.

* subversion/libsvn_ra_serf/serf.c

(load_config): Switch to using the tristate option.

* subversion/libsvn_ra_serf/util.c

(svn_ra_serf__error_on_status): Suggest the tristate option be set to auto

or no when we get a 411.

* subversion/libsvn_subr/config_file.c

(svn_config_ensure): Update to reflect change in config option.

  1. … 4 more files in changeset.