Menu

Commit [r350]  Maximize  Restore  History

I'm really tired of copy-n-pasting the complex loop (complex because

of the pool games I had to play) in what used to be
svn_repos_revisions_changed(). Replace/rename
svn_repos_revisions_changed() with a new function,
svn_repos_history(), that does this work and uses callbacks so that
users of this interface can do whatever they want with the history
data without reproducing so much darned code.

Also, kill 'svnadmin lscr' (since its functionality is encompassed by
the new 'svnlook history').

* subversion/include/svn_repos.h
(svn_repos_history_func_t): New.
(svn_repos_history): Was svn_repos_revisions_changed(). Now takes a
'history_func' and 'history_baton' instead of populating a 'revs' array.

* subversion/libsvn_repos/rev_hunt.c
(svn_repos_history): Was svn_repos_revisions_changed(). Now takes
and call a 'history_func' and 'history_baton' instead of
populating a 'revs' array.

* subversion/libsvn_repos/log.c
(history_to_revs_array): New.
(svn_repos_get_logs): Update calls to svn_repos_history().

* subversion/svnadmin/main.c
(struct svnadmin_opt_state): Remove 'follow_copies' member.
(cmd_table): Kill the 'lscr' subcommand.
(options_table, main): Remove support for --copies option.
(svnadmin__follow_copies, subcommand_lscr): Buh-bye.

* subversion/svnlook/main.c
(struct print_history_baton, print_history): New.
(do_history): Now just call svn_repos_history(). Oh, and compose
the docstring I forgot to write when I introduced this function.

* subversion/tests/libsvn_repos/repos-test.c
(history_to_revs_array): New.
(revisions_changed): Update test message, and update call to
svn_repos_history().

* subversion/doc/book/book/ch05.xml
* subversion/doc/book/book/ch08.xml
Kill mentions of 'svnadmin lscr'. (Oh, and add reference stuff for
the new 'svnlook history'.

cmpilato 2003-10-04

changed /trunk/src/book/book/ch05.xml
changed /trunk/src/book/book/ch08.xml
/trunk/src/book/book/ch05.xml Diff Switch to side-by-side view
Loading...
/trunk/src/book/book/ch08.xml Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.