Checkout
ghudson
committed
on 28 Oct 02
Push new editor interface through RA interface and some svn_repos
interfaces. Consequentially, convert WC diff editor and test dir
delta ed… Show more
Push new editor interface through RA interface and some svn_repos

interfaces.  Consequentially, convert WC diff editor and test dir

delta editor to new interface.  No drivers have been converted, but a

lot of wrapping moved around.  (Overall, less wrapping is necessary

now.)

See issue #737.

* subversion/include/svn_ra.h

 (svn_ra_plugin_t): Make update, switch, status, and diff operations

   take new-style editors.

* subversion/include/svn_repos.h

 (svn_repos_begin_report, svn_repos_dir_delta): Take new-style editor.

* subversion/include/svn_wc.h

 (svn_wc_get_diff_editor): Yield new-style editor.

* subversion/libsvn_client/switch.c (svn_client_switch): Unwrap.

* subversion/libsvn_client/diff.c (do_merge, do_diff): Unwrap.

* subversion/libsvn_client/update.c (svn_client_update): Unwrap.

* subversion/libsvn_client/status.c (add_update_info_to_status_hash): Unwrap.

* subversion/libsvn_ra_dav/ra_dav.h, subversion/libsvn_ra_dav/fetch.c

 (svn_ra_dav__do_update, svn_ra_dav__do_status,

   svn_ra_dav__do_switch, svn_ra_dav__do_diff): Take new-style editor.

   Wrap before passing to make_reporter().

* subversion/libsvn_ra_local/ra_plugin.c

 (make_reporter, svn_ra_local__do_update, svn_ra_local__do_switch,

   svn_ra_local__do_status, svn_ra_local__do_diff): Take new-style editor.

* subversion/libsvn_repos/reporter.c

 (svn_repos_report_baton_t, svn_repos_begin_report): Use new-style

   editor.

* subversion/libsvn_repos/dump.c (svn_repos_dump_fs): Unwrap.

* subversion/libsvn_repos/delta.c (svn_repos_dir_delta): Unwrap.

* subversion/libsvn_wc/diff.c

 (make_editor_baton, make_dir_baton, make_file_baton, open_root,

   add_directory, open_directory, add_file, open_file, change_file_prop,

   change_dir_prop, close_edit, svn_wc_get_diff_editor): Convert to new

   editor interface.  A fairly traumatic conversion.  make_dir_baton

   and make_file_baton now take full wc paths, so that they can be

   constructed either from anchor_path or from the parent path as

   needed.  Clarified the definition and purpose of file_baton's

   wc_path.  Adding filenames to pb->compared now happens at open/add

   time, since files can be closed after their parent dirs are

   closed.

* subversion/svnlook/main.c (generate_delta_tree): Unwrap.

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

 (dir_deltas): Use new-style editor.

* subversion/tests/libsvn_repos/dir-delta-editor.h,

 subversion/tests/libsvn_repos/dir-delta-editor.c

 (test_delete_entry, test_open_root, test_open_directory,

   test_add_directory, test_open_file, test_add_file,

   test_change_file_prop, test_change_dir_prop, dir_delta_get_editor):

   Convert to new editor interface.

Show less