Checkout Tools
  • last updated 6 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Test out my new and fancy ASF commit priviledges by changing the copyright

wording in our license headers to reflect ownership by the ASF.

* NOTICE:

Change terminology to ASF, and update a link.

* subversion/libsvn_subr/opt.c

(svn_opt__print_version_info): Note that the product as a whole is

copyrighted by the ASF, and update the project website.

* everywhere:

Change license text to reflect ASF ownership.

  1. … 891 more files in changeset.
Relicense Subversion under the Apache License, Version 2.0.

* NOTICE: New.

* LICENSE: New.

* COPYING,

subversion/LICENSE: Remove.

* subversion/libsvn_subr/opt.c

(svn_opt__print_version_info): Note that the product as a whole is

copyrighted by the SVN Corp, and that it contains contributions from

many people, as referenced in NOTICE.

* subversion/bindings/swig/python/LICENSE_FOR_PYTHON_BINDINGS:

Relicense the SVN parts under Apache 2.0.

* everywhere:

Change copyright notices in file headers to reflect the Apache 2.0 license.

  1. … 882 more files in changeset.
Follow-up to r35017:

Allow to specify Berkeley DB header.

(It allows to build libsvn_fs_base when APR-Util isn't built with support for Berkeley DB.)

* build/ac-macros/berkeley-db.m4

(SVN_LIB_BERKELEY_DB, SVN_LIB_BERKELEY_DB_TRY): Allow to specify Berkeley DB

header in argument of the '--with-berkeley-db' option. Add conditional

inclusion of Berkeley DB header to 'subversion/svn_private_config.h'.

* configure.ac: Substitute '@SVN_DB_HEADER@' with appropriate value

in 'subversion/svn_private_config.h'.

* subversion/svn_private_config.hw: Include Berkeley DB header when

SVN_WANT_BDB is defined.

* subversion/libsvn_fs_base/bdb/bdb_compat.h:

* subversion/libsvn_fs_base/bdb/bdb-err.c:

* subversion/libsvn_fs_base/bdb/changes-table.h:

* subversion/libsvn_fs_base/bdb/dbt.c:

* subversion/libsvn_fs_base/bdb/dbt.h:

* subversion/libsvn_fs_base/bdb/env.h:

* subversion/libsvn_fs_base/bdb/nodes-table.h:

* subversion/libsvn_fs_base/bdb/reps-table.h:

* subversion/libsvn_fs_base/bdb/rev-table.h:

* subversion/libsvn_fs_base/bdb/strings-table.h:

* subversion/libsvn_fs_base/bdb/uuids-table.h:

* subversion/libsvn_fs_base/fs.c:

* subversion/libsvn_fs_base/fs.h:

* subversion/libsvn_fs_base/node-rev.c:

* subversion/libsvn_fs_base/node-rev.h:

* subversion/libsvn_fs_base/reps-strings.c:

* subversion/libsvn_fs_base/reps-strings.h:

* subversion/libsvn_fs_base/revs-txns.h:

* subversion/libsvn_fs_base/trail.c:

* subversion/libsvn_fs_base/trail.h:

* subversion/libsvn_fs_base/util/fs_skels.h: Define SVN_WANT_BDB and

include "svn_private_config.h" instead of defining APU_WANT_DB and

including <apu_want.h>.

  1. … 23 more files in changeset.
Bump the libsvn_fs_base format number, and disallow node-origin and

mergeinfo calculations and queries on older versions of the schema.

Honor the --pre-1.5-compatible flag provided by 'svnadmin create', and

don't auto-upgrade the schema.

* subversion/libsvn_fs_base/fs.h

(SVN_FS_BASE__MIN_NODE_ORIGINS_FORMAT, SVN_FS_BASE__MIN_MERGEINFO_FORMAT):

New #defines.

(svn_fs_base__test_required_feature_format): New function.

(struct node_revision_t): Add some comments around the mergeinfo

fields about validity and format versions.

* subversion/libsvn_fs_base/fs.c

(svn_fs_base__test_required_feature_format): New function.

(check_format): Allow formats 1 and 2 to persist.

(open_databases): Add 'format' parameter, and use it to avoid

creating/opening the new 'node-origins' table.

(base_create): Handle requests to preserve a pre-1.5-compatible

repository format. Update call to open_databases(). Also, record

the format in the svn_fs_t * object!

(base_open): Update call to open_databases().

* subversion/libsvn_fs_base/node-rev.c

(svn_fs_base__create_node, svn_fs_base__delete_node_revision): Don't

do node-origins stuff unless the FS version supports it.

* subversion/libsvn_fs_base/tree.c

(base_node_origin_rev): Disallow node-origins queries for

insufficiently versioned schemas.

(base_get_mergeinfo): Disallow mergeinfo queries for insufficiently

versioned schemas.

* subversion/libsvn_fs_base/util/fs_skels.h,

* subversion/libsvn_fs_base/util/fs_skels.c

(svn_fs_base__unparse_node_revision_skel): Add 'format' parameter,

and only write mergeinfo data when the format is adequate.

* subversion/libsvn_fs_base/dag.c

(svn_fs_base__dag_set_has_mergeinfo,

svn_fs_base__dag_adjust_mergeinfo_count): Test the FS schema

version before allowing mergeinfo-related tweaks.

(svn_fs_base__dag_set_mergeinfo_count): Remove as unused.

* subversion/libsvn_fs_base/dag.h

(svn_fs_base__dag_set_mergeinfo_count): Remove as unused.

  1. … 8 more files in changeset.
Enable generation of node-origins records for new lines of history.

* subversion/libsvn_fs_base/node-rev.h,

* subversion/libsvn_fs_base/node-rev.c

(svn_fs_base__delete_node_revision): Add 'origin_also' parameter and

functionality.

* subversion/libsvn_fs_base/dag.c

(svn_fs_base__dag_remove_node): Update call to

svn_fs_base__delete_node_revision().

  1. … 2 more files in changeset.
Channeling Erik Hülsmann, remove all trailing whitespace within our source

tree:

for extsn in c h cpp java py pl rb; do

sed -i -e 's/[ \t]*$//' `find . -name "*.$extsn" | xargs grep '[ \t]$' -l`

done

Inspired by: ehu

  1. … 449 more files in changeset.
Reformat the code to use a consistent no-space-before-param-list-paren style.

See here for the vote that decided this:

http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgNo=111877

From: "Peter N. Lundblad" <peter@famlundblad.se>

To: "Peter N. Lundblad" <peter@famlundblad.se>

cc: dev@subversion.tigris.org

Subject: Results of: [VOTE] New space-before-parens style

Date: Wed, 8 Feb 2006 12:00:35 +0100 (CET)

Message-ID: <Pine.LNX.4.55.0602080918350.10805@localhost.localdomain>

I took the opportunity to make spacing among all parens in SVN_ERR

macro calls consistent. But I did not address consistency of casts,

nor whether a function name should always appear below its return type

in declarations and definitions, nor whether there should be a space

before/after the "*" when declaring pointer return types.

* www/hacking.html

(coding-style): Document that we are no-space-before-paren now.

* everywhere: Reformat.

  1. … 365 more files in changeset.
Finish (as far as I can tell) making all the libsvn_fs_base functions

which accept trail_t's, but which are not txn_body_* functions, also

accept pool parameters. Generally speaking, txn_body_* callers of

these functions pass their trail->pool for this new parameter; other

functions pass the pools directly provided to them.

* subversion/libsvn_fs_base/node-rev.h,

subversion/libsvn_fs_base/node-rev.c

(svn_fs_base__create_node, svn_fs_base__create_successor,

svn_fs_base__delete_node_revision): Add 'pool' parameter.

* subversion/libsvn_fs_base/reps-strings.h

(svn_fs_base__get_mutable_rep, svn_fs_base__rep_deltify,

svn_fs_base__delete_rep_if_mutable, svn_fs_base__rep_contents_size,

svn_fs_base__rep_contents_checksum, svn_fs_base__rep_contents,

svn_fs_base__rep_deltify, svn_fs_base__rep_undeltify): Add 'pool' parameter.

* subversion/libsvn_fs_base/reps-strings.c

(rep_undeltify_range, rep_read_range, svn_fs_base__get_mutable_rep,

svn_fs_base__delete_rep_if_mutable, svn_fs_base__rep_contents_size,

svn_fs_base__rep_contents_checksum, svn_fs_base__rep_contents_checksum,

txn_body_read_rep, rep_write, txn_body_write_rep, txn_body_write_close_rep,

rep_contents_clear, svn_fs_base__rep_deltify): Add 'pool' parameter.

(delete_strings): Add 'pool' parameter, and use an iteration subpool.

* subversion/libsvn_fs_base/revs-txns.h

(svn_fs_base__rev_get_root, svn_fs_base__rev_get_txn_id,

svn_fs_base__set_rev_prop, svn_fs_base__txn_make_committed,

svn_fs_base__txn_get_revision, svn_fs_base__get_txn_ids,

svn_fs_base__set_txn_root, svn_fs_base__add_txn_copy,

svn_fs_base__set_txn_base, svn_fs_base__set_txn_prop): Add 'pool' parameter.

* subversion/libsvn_fs_base/revs-txns.c

(get_txn, get_rev_txn, svn_fs_base__rev_get_root,

svn_fs_base__rev_get_txn_id, txn_body_youngest_rev,

txn_body_revision_proplist, svn_fs_base__set_rev_prop,

txn_body_change_rev_prop, svn_fs_base__txn_make_committed,

svn_fs_base__txn_get_revision, svn_fs_base__get_txn_ids,

svn_fs_base__set_txn_root, svn_fs_base__set_txn_base,

svn_fs_base__add_txn_copy, txn_body_txn_proplist,

svn_fs_base__set_txn_prop, txn_body_change_txn_prop,

txn_body_begin_txn, txn_body_open_txn, txn_body_cleanup_txn,

txn_body_cleanup_txn_copy, txn_body_cleanup_txn_changes,

txn_body_get_dirents, txn_body_remove_node, txn_body_delete_txn,

txn_body_abort_txn, txn_body_list_transactions): Add 'pool' parameter.

* subversion/libsvn_fs_base/tree.c

(root_node, mutable_root_node, get_copy_inheritance, open_path,

make_path_mutable, get_dag, add_change, id_check_ancestor,

update_ancestry, undelete_change, examine_copy_inheritance,

merge): Add 'pool' parameter.

  1. … 8 more files in changeset.
Make all the libsvn_fs_base/bdb functions which currently accept only

trail_t's also accept (and use, instead of trail->pool) explicit 'pool'

parameters.

Callers of these functions which themselves live in the

libsvn_fs_base/bdb area now provide *their* new pool as the value for

this new parameter; callers outside that area pass trail->pool as that

parameter. The net affect, of course, is that no changes in memory

usage have happened at all. But this is the first step of several

incremental commits which should give us the flexibility over pool

usage that we need in the BDB backend.

* subversion/libsvn_fs_base/bdb/changes-table.h,

subversion/libsvn_fs_base/bdb/changes-table.c

(svn_fs_bdb__changes_add, svn_fs_bdb__changes_delete,

svn_fs_bdb__changes_fetch, svn_fs_bdb__changes_fetch_raw): Add

'pool' parameter, and use it instead of trail's pool for allocations.

* subversion/libsvn_fs_base/bdb/copies-table.h

(svn_fs_bdb__reserve_copy_id, svn_fs_bdb__create_copy,

svn_fs_bdb__delete_copy, svn_fs_bdb__get_copy): Add 'pool'

parameter, and use it instead of trail's pool for allocations.

* subversion/libsvn_fs_base/bdb/copies-table.c

(put_copy, svn_fs_bdb__reserve_copy_id, svn_fs_bdb__create_copy,

svn_fs_bdb__delete_copy, svn_fs_bdb__get_copy): Add

'pool' parameter, and use it instead of trail's pool for allocations.

* subversion/libsvn_fs_base/bdb/nodes-table.h,

subversion/libsvn_fs_base/bdb/nodes-table.c

(svn_fs_bdb__new_node_id, svn_fs_bdb__new_successor_id,

svn_fs_bdb__delete_nodes_entry, svn_fs_bdb__get_node_revision,

svn_fs_bdb__put_node_revision): Add

'pool' parameter, and use it instead of trail's pool for allocations.

* subversion/libsvn_fs_base/bdb/reps-table.h,

subversion/libsvn_fs_base/bdb/reps-table.c

(svn_fs_bdb__read_rep, svn_fs_bdb__write_rep,

svn_fs_bdb__write_new_rep, svn_fs_bdb__delete_rep): Add

'pool' parameter, and use it instead of trail's pool for allocations.

* subversion/libsvn_fs_base/bdb/rev-table.h,

subversion/libsvn_fs_base/bdb/rev-table.c

(svn_fs_bdb__get_rev, svn_fs_bdb__put_rev, svn_fs_bdb__youngest_rev): Add

'pool' parameter, and use it instead of trail's pool for allocations.

* subversion/libsvn_fs_base/bdb/strings-table.c

(locate_key, svn_fs_bdb__string_read, get_key_and_bump,

svn_fs_bdb__string_append, svn_fs_bdb__string_clear,

svn_fs_bdb__string_size, svn_fs_bdb__string_delete,

svn_fs_bdb__string_copy): Add 'pool' parameter, and use it instead

of trail's pool for allocations.

* subversion/libsvn_fs_base/bdb/strings-table.h

(svn_fs_bdb__string_read, svn_fs_bdb__string_size,

svn_fs_bdb__string_append, svn_fs_bdb__string_clear,

svn_fs_bdb__string_delete, svn_fs_bdb__string_copy): Add 'pool'

parameter, and use it instead of trail's pool for allocations.

* subversion/libsvn_fs_base/bdb/txn-table.c

(svn_fs_bdb__put_txn, allocate_txn_id, svn_fs_bdb__create_txn,

svn_fs_bdb__delete_txn, svn_fs_bdb__get_txn): Add 'pool' parameter,

and use it instead of trail's pool for allocations.

(svn_fs_bdb__get_txn_list): Re-order parameters (this one already

had a 'pool' parameter).

* subversion/libsvn_fs_base/bdb/txn-table.h

(svn_fs_bdb__create_txn, svn_fs_bdb__delete_txn,

svn_fs_bdb__get_txn, svn_fs_bdb__put_txn): Add 'pool' parameter,

and use it instead of trail's pool for allocations.

(svn_fs_bdb__get_txn_list): Re-order parameters (this one already

had a 'pool' parameter).

* subversion/libsvn_fs_base/bdb/uuids-table.h,

subversion/libsvn_fs_base/bdb/uuids-table.c

(svn_fs_bdb__get_uuid, svn_fs_bdb__set_uuid): Add 'pool' parameter,

and use it instead of trail's pool for allocations.

  1. … 24 more files in changeset.
Rationalize #includes in C source files.

If a file does not use symbols from a given header, then do not include

that header.

If a file uses symbols from a given header 'H', and H was only being

included via another header that neither needs nor guarantees to include

H, then include H directly.

(By "symbols from a given header" I mean symbols that it either defines

itself or pulls in from other headers with the specific intention of

providing them to its users.)

  1. … 149 more files in changeset.
Merge the changes from the fs-abstraction branch. This allows the

libsvn_fs_fs filesystem to sit alongside the old BDB filesystem in the

same executable.

  1. … 89 more files in changeset.