Checkout Tools
  • last updated 27 mins ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Support property deltas in svndumpfilter.

* subversion/tests/cmdline/svndumpfilter_tests_data/simple_v3.dump

Extend with a revision containing propdeltas (added and deleted).

* subversion/tests/cmdine/svndumpfilter_tests.py

(accepts_deltas): Check that the prop deltas are preserved.

* subversion/include/svn_repos.h

(SVN_REPOS_DUMPFILE_FORMAT_VERSION_DELTAS): New #define.

* subversion/svndumpfilter/main.c

(write_propdel_to_stringbuf): New function.

(parse_baton_t): Add 'allow_deltas' flag.

(node_baton_t): Add fields for delta parsing.

(magic_header_record): Allow deltas for v3 or higher.

(new_node_record): Prepare to parse deltas if necessary.

(set_node_property): Allow prop deltas.

(delete_node_property): New callback implementation.

(filtering_vtable): Use the new callback.

(parse_baton_initialize): Set deltas off by default.

  1. … 3 more files in changeset.
Accept dump format v3, except for property deltas, in svndumpfilter.

Replace the hardcoded version number ("2") with a parser callback for

the dump file format version number. Used by svndumpfilter only (so

far).

Add an API option to treat text-deltas as text instead of applying

them. TRUE for svndumpfilter only.

* subversion/tests/cmdline/svndumpfilter_tests.py

(with_deltas): New test.

(test_list): Add the test.

* subversion/tests/cmdline/svndumpfilter_tests_data/simple_v3.dump

New file.

* subversion/include/svn_repos.h

(magic_header_record): New callback declaration.

(svn_repos_parse_fns3_t): Add the new callback declaration.

(svn_repos_parse_dumpstream3): Add the text-delta option.

* subversion/libsvn_repos/load.c

(parse_format_version): While we're here, put the "output" argument

first.

(svn_repos_parse_dumpstream3): Implement the text-delta-as-text option.

Pass the format version to the new callback. Don't reject v3 dumpfiles

anymore.

* subversion/svndumpfilter/main.c

(magic_header_record): New callback.

(svn_repos_parse_fns3_t): Add the new callback.

(parse_baton_initialize): Remove the hard-coded format-version output.

(do_filter): Treat text-deltas as text.

* subversion/svnrdump/load_editor.c

(magic_header_record): New callback.

(svn_rdump__load_dumpstream): Use the new callback.

* subversion/libsvn_repos/deprecated.c

(fns3_from_fns2): Set the new callback.

(svn_repos_get_fs_build_parser3): Add the text-delta option.

* subversion/libsvn_repos/load-fs-vtable.c

(magic_header_record): New callback.

(svn_repos_get_fs_build_parser4): Use the new callback.

(svn_repos_load_fs4): Add the text-delta option.

  1. … 7 more files in changeset.