Use svn_wc__db_read_pristine_info() instead of svn_wc__db_read_info() in svn_wc__get_pristine_contents() to allow access to the pristine files of deleted paths again.
Use svn_wc__db_read_pristine_info() instead of svn_wc__db_read_info() in
svn_wc__get_pristine_contents() to allow access to the pristine files of
deleted paths again.

Until recently this function would have worked 'ok' on deleted nodes,
because we kept stale information in the deleted node information in wc.db.

* subversion/libsvn_wc/adm_files.c
  (svn_wc__text_base_path_to_read): Synchronize checks with
    svn_wc__get_pristine_contents.

  (svn_wc__get_pristine_contents): Use svn_wc__db_read_pristine_info. Remove
    scan addition call as we already know if we have a checksum and scan
    addition doesn't work on deleted nodes.


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

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