Followup to r1188357 by introducing a helper function and using it.
Followup to r1188357 by introducing a helper function and using it.

Suggested by: cmpilato

* subversion/libsvn_delta/compat.c
  (ensure_root_opened): New.
  (add_directory_cb, add_file_cb, add_symlink_cb, add_absent_cb, set_props_cb,
   set_text_cb, set_text_cb, set_target_cb, delete_cb, copy_cb, move_cb):
    Use the helper.


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

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