Consolidate code that converts a WC path -> repository URLs.
Consolidate code that converts a WC path -> repository URLs.

* subversion/libsvn_client/util.c
  (wc_path_to_repos_urls): Add new function factored out of redundant
   code, which converts a WC path into repository URLs.
  (svn_client__path_relative_to_root, svn_client__get_repos_root):
   Leverage wc_path_to_repos_urls(), replacing redundant code.


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

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