ra_serf: When getting info on a directory in the repository, check that we're
really working with a directory. 

Found by: epg

* subversion/libsvn_ra_serf/serf.c
  (resource_is_directory): New function. Reads the resource type from list of
   properties and checks if the resource is a collection.
  (svn_ra_serf__get_dir): Calls to svn_ra_serf__deliver_props and 
   svn_ra_serf__wait_for_props can be combined in one call to 
   svn_ra_serf__retrieve_props. When we have to get the properties already,
   also check the content of the reourcetype property.


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@871449 13f79535-47bb-0310-9956-ffa450edef68
1 file changed