Don't replace directories with a not-present node when a not supported subversion server (read: GitHub) describes that we should add a directory where one already exists.
Don't replace directories with a not-present node when a not supported
subversion server (read: GitHub) describes that we should add a directory
where one already exists.

In this case the reporter got told that the directory already exists,
but still described that one should be added in its place.
(A well behaving server would describe an open, or a delete before
 the add).

In any case: this is not an obstructing working copy as we assumed,
so we don't have to break wc.db's info to allow recovering.

* subversion/libsvn_wc/update_editor.c
  (add_directory,
   add_file): Check that there really is an obstructing working copy,
     before taking action.


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

YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion