* subversion/tests/cmdline/redirect_tests.py
  (redirected_externals): New test.
  (test_list): Add new test.


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1641430 13f79535-47bb-0310-9956-ffa450edef68
Fix issue 4529: directory external not following history.

* subversion/libsvn_client/externals.c
  (handle_external_item_change): Reparent after resolving.

* subversion/tests/cmdline/externals_tests.py
  (pinned_externals): Extend with directory case, remove redundant variable.


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1641495 13f79535-47bb-0310-9956-ffa450edef68
Fix issue #4185: SVN client silently fails to import an ancestor of
external file specified via svn:externals rule with operative revision.

* subversion/libsvn_client/externals.c
  (switch_file_external): replace 'url' parameter mistakenly
   passed to svn_ra_do_switch3() by 'switch_loc->url'.

* subversion/tests/cmdline/externals_tests.py
  (pinned_externals): Tweak expectations.

Patch by: Alex Siyanko <asiyanko{_AT_}xdyne.com>
          me


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1641564 13f79535-47bb-0310-9956-ffa450edef68
Avoid yet another unneeded ra session in the externals processing.

Found by: philip

* subversion/libsvn_client/externals.c
  (switch_file_external): Use passed resolved location and ra session instead
    of re-doing this locally.
  (handle_external_item_change): Update caller.


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1641591 13f79535-47bb-0310-9956-ffa450edef68
* subversion/libsvn_client/externals.c
  (switch_file_external): Followup to r1641591, simplify further by
    removing reparent, variable and comment.


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1641611 13f79535-47bb-0310-9956-ffa450edef68
Avoid using svn_(uri|dirent|relpath)_split() with only one output argument.

* subversion/libsvn_client/info.c
  (svn_client_info4): Just use svn_uri_basename().

* subversion/libsvn_delta/path_driver.c
  (svn_delta_path_driver2): Don't calculate unused basename.


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1641616 13f79535-47bb-0310-9956-ffa450edef68