Make the add_directory and add_file code in the update editor more similar and
thereby avoid a few unneeded db operations during a clean checkout.

* subversion/libsvn_wc/update_editor.c
  (dir_baton): Rename variable.
  (make_dir_baton): Update initialization.
  (add_directory): Introduce a real scratch pool. Implement the same clean
    checkout optimization as in add_file. Handle status normal for obstructions
    as one block. Remove comment on 'output' that belongs in svn.
  (close_directory): Handle kind of not present nodes. Remove from parent not
    present if necessary.
  (add_file): Handle status for obstructions as one block.
  (close_file): Update caller.


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