Checkout
cmpilato
committed
on 05 Feb 14
Introduce '--ignore-dates' option for 'svnadmin load', which causes
the load process to ignore the revision datestamps found in the
dumpstre… Show more
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

would.

* 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.

* subversion/tests/cmdline/svnadmin_tests.py

 (load_ignore_dates): New test for 'svnadmin load --ignore-dates'.

 (test_list): Add reference to new test.

Show less