Fix issue #2475: scheme and domain name in urls should be handled case insensitive.
During canonicalization of urls, the scheme and domain name are now converted to lower case. This is more practical than doing expensive url comparisons where we use a simple strcmp right now.
As the entries files can now contain non-canonical urls, these will be canonicalized during wc upgrade.
* subversion/libsvn_subr/path.c (global): Include apr_uri.h (svn_path_canonicalize): Convert the scheme and hostname part of a uri to lower case. * subversion/include/svn_path.h (svn_path_canonicalize): Add comment. * subversion/libsvn_wc/wc.h (SVN_WC__VERSION): Add comment on changes between wc format 9 and 10. (SVN_WC__CHANGED_CANONICAL_URLS): Add new tag for wc format 10. * subversion/libsvn_wc/entries.c (read_url): New function that reads an url from an entries files and takes into account the changed canonicalization in wc format 10. (read_entry): Add argument entries_format for use when reading urls. (read_entries): Read the format from the entries file. * subversion/tests/libsvn_subr/path-test.c (test_canonicalize, test_is_canonical): Add some extra testcases for case insensitive scheme and hostnames. * subversion/tests/cmdline/copy_tests.py (change_case_of_hostname): Utility function, changes case of hostname of an uri. (path_move_and_copy_between_wcs_2475, path_copy_in_repo_2475): New tests. (test_list): Run the new tests, both pass.