When validating svn:eol-style properties, do the quick "is binary"
commit0b55d82d94dc588a6f607ff01f771b9f44d70fb5
authorglasser <glasser@612f8ebc-c883-4be0-9ee0-a4e9ef946e3a>
Wed, 2 Jan 2008 19:02:31 +0000 (2 19:02 +0000)
committerglasser <glasser@612f8ebc-c883-4be0-9ee0-a4e9ef946e3a>
Wed, 2 Jan 2008 19:02:31 +0000 (2 19:02 +0000)
treee0bf8e42abc0f9cbb8fed85ae9c883c7fd430199
parent80213f1ed75b0540b2b291ac22a1d6232f17e4a5
When validating svn:eol-style properties, do the quick "is binary"
check before the slower newline consistency check, just like 1.4 used
to.

To implement this, we make the svn_wc_canonicalize_svn_prop_get_file_t
accept NULL values for mime_type and stream, and call it twice from
the validator.

* subversion/include/svn_wc.h
  (svn_wc_canonicalize_svn_prop_get_file_t): Change documentation to
   allow both output arguments to be null.

* subversion/libsvn_client/prop_commands.c
  (get_file_for_validation): Only fetch MIME type if mime_type is
   non-NULL.  (No change needed for stream, because svn_ra_get_file
   already has the proper semantics.)

* subversion/libsvn_wc/props.c
  (get_file_for_validation): Only fetch MIME type if requested; only
   fetch fetch file if requested.
  (validate_eol_prop_against_file): Call getter twice; check just the
   MIME type the first time, and just the contents the second time.

git-svn-id: http://svn.collab.net/repos/svn/trunk@28721 612f8ebc-c883-4be0-9ee0-a4e9ef946e3a
subversion/include/svn_wc.h
subversion/libsvn_client/prop_commands.c
subversion/libsvn_wc/props.c