Fix 'svn info $REPO_ROOT' for pre-1.2 svn:// servers. (pre-1.2 svnserve doesn't provide a way to get information about the root).
Fix 'svn info $REPO_ROOT' for pre-1.2 svn:// servers.
(pre-1.2 svnserve doesn't provide a way to get information about the root).

If running non-recursively, return an error rather than doing nothing at all.

If running recursively, fix an uninitialised memory read that effectively
meant that recursion would terminate before doing anything useful.

Found by: Zing <zing+svndev@fastmail.fm>

* subversion/libsvn_client/info.c
  (svn_client_info): Check whether the URL is the repository root URL as early
    as possible, and return an error if we're not recursing.  If we are
    recursing, change where we jump to to avoid checking 'the_ent', which is
    uninitialised at this point.


git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@866338 13f79535-47bb-0310-9956-ffa450edef68

wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion