Fix issue #4621

The svn command line client version 1.9 and later will return
an error on propget if the property doesn't exist.

* contrib/client-side/svn_load_dirs/svn_load_dirs.pl.in
  Check for the property existence using proplist before trying
  to get the property

Patch by: Vivek Khera (newline fixes by me, removed part
already fixed in r1863392)



git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1912002 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/contrib/client-side/svn_load_dirs/svn_load_dirs.pl.in b/contrib/client-side/svn_load_dirs/svn_load_dirs.pl.in
index 355fc90..2541d02 100755
--- a/contrib/client-side/svn_load_dirs/svn_load_dirs.pl.in
+++ b/contrib/client-side/svn_load_dirs/svn_load_dirs.pl.in
@@ -1239,6 +1239,15 @@
             # get the incorrect information.  So always append @BASE
             # and any preceding @'s will be treated normally and the
             # correct information will be retrieved.
+
+            # first make sure that the file has the eol-style property
+            # else svn 1.9 will error when it is not found
+            my @proplist = read_from_process($svn,
+                                             'proplist',
+                                             '--quiet',
+                                             "$upd_file\@BASE");
+            next unless grep(/svn:eol-style/, @proplist);
+
             my @command = ($svn,
                            'propget',
                            'svn:eol-style',