Checkout
kotkov
committed
on 09 Oct
Normalize line endings in node properties (such as svn:ignore) when loading
dumps with `svnadmin load --normalize-props`.

Previously, this … Show more
Normalize line endings in node properties (such as svn:ignore) when loading

dumps with `svnadmin load --normalize-props`.

Previously, this command would only normalize revision properties, but

do nothing for node properties.

The problem has been reported by a user in the following thread:

https://lists.apache.org/thread.html/86a018501fde594b4ebf4080143bcb9562b0482d794206e27de86836@%3Cusers.subversion.apache.org%3E

* subversion/libsvn_repos/load-fs-vtable.c

 (change_node_prop): Accept the new `normalize_props` argument, call

  svn_repos__normalize_prop() for the property if it is set.

 (set_node_property, delete_node_property, remove_node_props):

  Update calling sites of the change_node_prop() function, pass the

  stored `normalize_props` state of the parser.

* subversion/tests/cmdline/svnadmin_tests.py

 (load_normalize_node_props): New regression test.

 (test_list): Add new test.

Show less