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

[PATCH][RFC] svnadmin load --ignore-dates

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Tue, 4 Feb 2014 17:13:12 -0500

Didn't want to commit this directly just yet, given my somewhat
disconnected attention level in the project as of late. Mostly looking
for general feedback on the idea of the "sounds useful if it works" or
"you *really* don't want to go there" variety, but deeper review is of
course welcome, too.

Log message:

Introduce '--ignore-dates' option for 'svnadmin load', which causes
the load process to ignore the revision datestamps found in the
dumpstream. This allows folks to more easily use dumpfiles as
repository templates which appear (datestamp-wise) as normal commits

* subversion/include/svn_repos.h
  (svn_repos_load_fs5): New version of this API which accepts
    'ignore_dates' flag.

* subversion/libsvn_repos/deprecated.c
  (svn_repos_load_fs4): Moved here from load-fs-vtable.c, and is now
    just a wrapper around svn_repos_load_fs5().

* subversion/libsvn_repos/load-fs-vtable.c
  (parse_baton): Add 'ignore_dates' member.
  (set_revision_property, close_revision): Handle ignore_dates flag.
  (svn_repos_load_fs5): New version of this API which accepts
    'ignore_dates' flag.

* subversion/svnadmin/svnadmin.c
  (svnadmin__ignore_dates): New enum value.
  (options_table): Define --ignore-dates option.
  (cmd_table): Allow 'load' to accept --ignore-dates.
  (svnadmin_opt_state): Add 'ignore_dates' member.
  (subcommand_load): Now use svn_repos_load_fs5().
  (main): Handle --ignore-dates option.


Received on 2014-02-04 23:13:47 CET

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.