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

* include/private/svn_auth_private.h, include/private/svn_branch_impl.h,

include/private/svn_config_private.h, include/private/svn_diff_tree.h,

include/private/svn_mergeinfo_private.h, include/private/svn_object_pool.h,

include/private/svn_repos_private.h, include/private/svn_subr_private.h,

include/private/svn_temp_serializer.h, include/private/svn_utf_private.h,

include/private/svn_wc_private.h, include/svn_auth.h, include/svn_client.h,

include/svn_cmdline.h, include/svn_compat.h, include/svn_fs.h,

include/svn_ra.h, include/svn_repos.h, include/svn_types.h,

include/svn_types_impl.h, include/svn_version.h, include/svn_wc.h,

include/svn_x509.h:

(): Spelling fixes

  1. … 22 more files in changeset.
In 'svnmover', consolidate some branching methods: merge the 'branch' and

'open_branch' methods into one.

* subversion/include/private/svn_branch.h

(svn_branch__txn_open_branch): Add a 'tree_ref' parameter.

(svn_branch__txn_branch): Delete.

* subversion/include/private/svn_branch_impl.h

(svn_branch__txn_v_open_branch_t): Add a 'tree_ref' parameter.

(svn_branch__txn_v_branch_t): Delete.

(svn_branch__txn_vtable_t): Remove that method from the vtable.

* subversion/libsvn_delta/branch.c

(branch_txn_open_branch): Add a 'tree_ref' parameter, and apply it like

the 'branch' method used to do.

(branch_txn_branch): Delete.

(svn_branch__txn_open_branch): Add a 'tree_ref' parameter.

(svn_branch__txn_branch): Delete.

(branch_txn_create): Remove that method from the vtable.

* subversion/libsvn_delta/branch_compat.c

(compat_branch_txn_open_branch): Add a 'tree_ref' parameter.

(compat_branch_txn_branch): Delete.

(svn_branch__compat_txn_from_delta_for_commit): Remove that method from

the vtable.

* subversion/libsvn_delta/branch_nested.c

(svn_branch__instantiate_elements_r): Update caller: pass null.

(nested_branch_txn_open_branch): Add a 'tree_ref' parameter, and apply

recursion to it like nested_branch_txn_branch() used to do.

(nested_branch_txn_branch): Delete.

(svn_branch__nested_txn_create): Remove that method from the vtable.

* tools/dev/svnmover/merge3.c

(merge_subbranch): Use 'open_branch' instead of 'branch' method.

* tools/dev/svnmover/svnmover.c

(svn_branch__replay,

update_wc_base_r,

do_mkbranch): Update caller: pass null.

(do_branch,

do_topbranch): Use 'open_branch' instead of 'branch' method.

  1. … 6 more files in changeset.
In 'svnmover', consolidate some branching methods. Basically, delete the

two 'add branch' methods because 'open branch' can do the same job.

* subversion/include/private/svn_branch.h

(svn_branch__txn_get_branches): Add comments.

(svn_branch__txn_open_branch): Add comments. Rename a parameter.

(svn_branch__state_t): Add comments.

(svn_branch__txn_add_branch,

svn_branch__txn_add_new_branch): Delete.

* subversion/include/private/svn_branch_impl.h

(svn_branch__txn_v_add_branch_t,

svn_branch__txn_v_add_new_branch_t): Delete.

(svn_branch__txn_vtable_t): Delete those entries from the vtable.

* subversion/libsvn_delta/branch.c

(branch_txn_add_branch,

branch_txn_add_new_branch): Delete.

(branch_txn_open_branch,

branch_txn_branch): Don't use svn_branch__txn_add_new_branch().

(svn_branch__txn_add_branch,

svn_branch__txn_add_new_branch): Delete.

(svn_branch__txn_open_branch): Rename a parameter.

(branch_txn_create): Update the vtable.

(svn_branch__txn_parse): Don't use svn_branch__txn_add_branch().

* subversion/libsvn_delta/branch_compat.c

(compat_branch_txn_add_branch,

compat_branch_txn_add_new_branch): Delete.

(svn_branch__compat_txn_from_delta_for_commit): Update the vtable.

* subversion/libsvn_delta/branch_nested.c

(svn_branch__instantiate_elements_r): Use svn_branch__txn_open_branch()

instead of ...add_new_branch.

(nested_branch_txn_add_branch,

nested_branch_txn_add_new_branch): Delete.

(svn_branch__nested_txn_create): Update the vtable.

* tools/dev/svnmover/svnmover.c

(do_mkbranch): Add a comment.

  1. … 5 more files in changeset.
In 'svnmover', track history better.

For each version of each branch, store pointers to previous branch-versions,

called "parents" like in Git. Usually, a branch version has one parent that

points to the previous version of the same branch. Upon branching, the new

branch gets one parent that points to the chosen version of the source

branch. Upon merging, in the usual case of a complete merge from a source

branch into a target branch, the target branch gets two parents: its own

previous version, and the merge source.

* subversion/include/private/svn_branch.h

(svn_branch__txn_open_branch,

svn_branch__txn_add_new_branch): Don't take a 'predecessor' parameter.

(svn_branch__state_t): Don't track a 'predecessor' as a public field here.

(svn_branch__history_t,

svn_branch__history_create_empty,

svn_branch__history_create,

svn_branch__history_dup): New.

(svn_branch__state_get_history): Rename from

'svn_branch__state_get_merge_ancestor'.

(svn_branch__state_set_history): Rename from

'svn_branch__state_add_merge_ancestor'.

* subversion/include/private/svn_branch_impl.h

Track the changes in svn_branch.h.

* subversion/libsvn_delta/branch.c

Implement the changes in svn_branch.h.

* subversion/libsvn_delta/branch_compat.c

Track the changes in svn_branch.h.

* subversion/libsvn_delta/branch_nested.c

Track the changes in svn_branch.h.

* subversion/tests/cmdline/svnmover_tests.py

(reported_mg_diff): No longer expect any diff output describing a merge

history difference, as we don't print that in a diff any more.

* tools/dev/svnmover/ra.c

(branch_get_mutable_state): Initialize each branch's parent to point to

the same branch in the base revision.

* tools/dev/svnmover/svnmover.c

(list_parents,

history_str,

svn_branch__history_add_parent): New.

(history_diff): Rename from 'merge_history_diff'.

(txn_is_changed): Don't compare history, but leave some place-holder code

in case we want to do so later.

(get_union_of_subbranches): Make robust against either or both inputs

being null.

(svn_branch__replay): Update the replaying of a change of history.

(update_wc_base_r): Update the copying of history for a new branch.

(do_merge): Update the recording of history.

(do_auto_merge): Dummy implementation: does nothing.

(show_history_r): New.

(branch_diff_r): Don't show history differences.

(find_branch_main_parent): New.

(svn_branch__find_predecessor_el_rev): Update the finding of the main

parent.

(do_log): Also show the history before the diff of each revision.

(do_mkbranch): Track the API changes.

(do_branch): Initialize the history (parent) of the new branch.

(show_branch_history): New.

(execute): In the 'info-wc' subcommand, show the history of the working

branch (and not of the base branch).

  1. … 7 more files in changeset.
In 'svnmover', tweak the 'branch state' API to slightly simplify both the

implementation and some callers.

* subversion/include/private/svn_branch.h

(svn_branch__state_set_element): New.

* subversion/include/private/svn_branch_impl.h

(svn_branch__state_v_set_element_t): New.

(svn_branch__state_v_alter_one_t,

svn_branch__state_v_delete_one_t): Delete.

(svn_branch__state_vtable_t): Replace 'alter_one' and 'delete_one' with

'set_element'.

* subversion/include/private/svn_element.h,

subversion/libsvn_delta/element.c

(svn_element__tree_set): Constify the input.

* subversion/libsvn_delta/branch.c

(branch_map_set): Constify the input.

(branch_state_delete_one,

branch_state_alter): Delete.

(branch_state_set_element,

svn_branch__state_set_element): New.

(svn_branch__state_alter_one,

svn_branch__state_delete_one): Change implementations to forward to

svn_branch__state_set_element.

(branch_state_create): Update the vtable.

(svn_branch__map_add_subtree,

svn_branch__state_parse): Update callers.

* subversion/libsvn_delta/branch_nested.c

(branch_instantiate_elements): Use the new method. Add a missing SVN_ERR().

* tools/dev/svnmover/merge3.c

(branch_merge_subtree_r): Use the new method.

* tools/dev/svnmover/svnmover.c

(branch_elements_replay,

update_wc_base_r): Use the new method.

  1. … 7 more files in changeset.
In 'svnmover', start tracking complete merges.

Track the source-branch end point of each merge. Add an 'automerge' command

that uses this as the ancestor for the next merge from the same source.

This is a very primitive initial implementation. It only enables each branch

to track complete merges from a single source branch. Complete merges here

refers to completeness in revisions (all revisions up to N, no cherry

picking) and also to the complete tree (no subtree tracking). It overwrites

the previous merge history regardless whether the new merge is from the same

source branch, and regardless whether it is in fact a complete merge.

* subversion/include/private/svn_branch.h

(svn_branch__rev_bid_equal): New.

(svn_branch__state_get_merge_ancestor,

svn_branch__state_set_merge_ancestor): New.

* subversion/include/private/svn_branch_impl.h

(svn_branch__state_v_get_merge_ancestor_t,

svn_branch__state_v_set_merge_ancestor_t): New.

(svn_branch__state_vtable_t): Add the new methods to the vtable.

* subversion/libsvn_delta/branch.c

(svn_branch__state_priv_t): Add storage for a merge ancestor (just one, so

far).

(svn_branch__rev_bid_equal): New.

(branch_state_get_merge_ancestor,

branch_state_set_merge_ancestor): New.

(svn_branch__state_get_merge_ancestor,

svn_branch__state_set_merge_ancestor): New.

(branch_state_create): Add the new methods to the vtable.

(svn_branch__get_default_r0_metadata): Update.

(merge_history_parse): New.

(parse_element_line): Take and use a result pool for the results, in order

to avoid surprises in future.

(svn_branch__state_parse): Parse the merge history.

(merge_history_serialize): New.

(svn_branch__state_serialize): Serialize the merge history.

* subversion/tests/cmdline/svnmover_tests.py

(reported_mg_diff): New.

(...everywhere...): Expect a merge-history diff whenever there is a merge.

* subversion/tests/cmdline/svntest/wc.py

(_re_parse_eid_merge_history): New.

(State.from_eids): Parse and ignore merge history lines.

* tools/dev/svnmover/merge3.c

(merge_subbranch): Correct a comment.

* tools/dev/svnmover/svnmover.c

(rev_bid_str,

merge_history_diff): New.

(txn_is_changed): Also check for any change in merge history.

(svn_branch__replay): Also replay any change in merge history.

(action_code_t,

action_defn): Define a new 'automerge' command. Rename a constant.

(do_merge): Also record the merge history.

(do_auto_merge): New.

(branch_diff_r): Also diff the merge history.

(execute): Expand the 'info-wc' command to show merge history status.

Implement the 'automerge' command. Track the rename.

  1. … 6 more files in changeset.
Merge the 'svnmover' prototype from the 'move-tracking-2' branch to trunk.

See the dev@ email thread "Merge 'svnmover' demo tool to trunk" started on

2015-11-10, archived at e.g. <http://mail-archives.apache.org/mod_mbox/subversion-dev/201511.mbox/%3CCAEcU=1YE5Ci02j_4aAeB_roS1X0H2QWPP3juu0exjVJ-FGCLyg@mail.gmail.com%3E>.

This is a reintegration (performed as an automatic merge) followed by

reverting the unwanted parts. As such, those unwanted parts (such as shim

insertions in several libraries) will be treated as 'record-only merged' and

will not be picked up by any subsequent automatic merge to trunk.

A brief description of the changes follows.

* build.conf

Adjust to build the new files.

* configure.ac

Adjust compiler warning flags to not warn about passing or returning a

structure, because some of the code does so.

* LICENSE

Add the licence text for the embedded 'linenoise' library.

* notes/move-tracking/README

New file, describing this work.

* subversion/include/private/svn_branch.h,

subversion/include/private/svn_branch_compat.h,

subversion/include/private/svn_branch_impl.h,

subversion/include/private/svn_branch_nested.h,

subversion/include/private/svn_branch_repos.h,

subversion/include/private/svn_element.h

New files.

* subversion/libsvn_delta/branch.c,

subversion/libsvn_delta/branch_compat.c,

subversion/libsvn_delta/branch_migrate.c,

subversion/libsvn_delta/branch_nested.c,

subversion/libsvn_delta/branch_repos.c,

subversion/libsvn_delta/element.c

New files.

* subversion/include/private/svn_cmdline_private.h

subversion/libsvn_subr/cmdline.c

(svn_cmdline__stdin_is_a_terminal,

svn_cmdline__stdout_is_a_terminal,

svn_cmdline__stderr_is_a_terminal): New.

* subversion/tests/cmdline/svnmover_tests.py

New file.

* subversion/tests/cmdline/svntest/actions.py

(run_and_verify_svnmover,

run_and_verify_svnmover2): New.

* subversion/tests/cmdline/svntest/main.py

(svnmover_binary,

run_svnmover): New.

(execute_tests): Initialize 'svnmover_binary'.

* subversion/tests/cmdline/svntest/wc.py

(State): Add 'rename' and 'from_eids' methods.

(StateItem): Add an 'eid' attribute.

* tools/dev/svnmover

New tool.

  1. … 25 more files in changeset.