Fix an error leak, and decomplicate code.
Fix an error leak, and decomplicate code.

* subversion/libsvn_client/revert.c (svn_client_revert, revert): Shuffle code
    between the main function and the static helper for a more logical layout,
    and to fix an error leak.


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

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