[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r24559 - trunk/subversion/svnadmin

From: Daniel Rall <dlr_at_collab.net>
Date: 2007-04-14 00:03:29 CEST

Does this need to go into 1.4.x?

On Thu, 12 Apr 2007, epg@tigris.org wrote:

> Author: epg
> Date: Thu Apr 12 10:38:50 2007
> New Revision: 24559
>
> Log:
> Stop svnadmin verify -r N from dumping the entire contents of the
> repository at N, making it possible to verify individual revisions of
> repositories of significant size.
>
> * subversion/svnadmin/main.c
> (dump_repo): Take incremental argument and pass along to
> svn_repos_dump_fs2 instead of opt_state->incremental .
> (subcommand_dump): Pass opt_state->incremental to dump_repo .
> (subcommand_verify): Pass opt_state->start_revision.kind !=
> svn_opt_revision_unspecified to dump_repo for incremental .
>
>
> Modified:
> trunk/subversion/svnadmin/main.c
>
> Modified: trunk/subversion/svnadmin/main.c
> URL: http://svn.collab.net/viewvc/svn/trunk/subversion/svnadmin/main.c?pathrev=24559&r1=24558&r2=24559
> ==============================================================================
> --- trunk/subversion/svnadmin/main.c (original)
> +++ trunk/subversion/svnadmin/main.c Thu Apr 12 10:38:50 2007
> @@ -619,7 +619,8 @@
> whether to send the dump to stdout or an empty stream. */
> static svn_error_t *
> dump_repo(apr_getopt_t *os, void *baton,
> - apr_pool_t *pool, svn_boolean_t dump_contents)
> + apr_pool_t *pool, svn_boolean_t dump_contents,
> + svn_boolean_t incremental)
> {
> struct svnadmin_opt_state *opt_state = baton;
> svn_repos_t *repos;
> @@ -666,7 +667,7 @@
> stderr_stream = recode_stream_create(stderr, pool);
>
> SVN_ERR(svn_repos_dump_fs2(repos, stdout_stream, stderr_stream,
> - lower, upper, opt_state->incremental,
> + lower, upper, incremental,
> opt_state->use_deltas, check_cancel, NULL,
> pool));
>
> @@ -678,7 +679,8 @@
> static svn_error_t *
> subcommand_dump(apr_getopt_t *os, void *baton, apr_pool_t *pool)
> {
> - return dump_repo(os, baton, pool, TRUE);
> + struct svnadmin_opt_state *opt_state = baton;
> + return dump_repo(os, baton, pool, TRUE, opt_state->incremental);
> }
>
>
> @@ -1061,7 +1063,9 @@
> static svn_error_t *
> subcommand_verify(apr_getopt_t *os, void *baton, apr_pool_t *pool)
> {
> - return dump_repo(os, baton, pool, FALSE);
> + struct svnadmin_opt_state *opt_state = baton;
> + return dump_repo(os, baton, pool, FALSE,
> + opt_state->start_revision.kind != svn_opt_revision_unspecified);
> }
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: svn-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: svn-help@subversion.tigris.org

  • application/pgp-signature attachment: stored
Received on Sat Apr 14 00:03:52 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.