Make the fs-commit editor match the subpooling/reference-counting behavior of the wc-update editor.  This allows efficient memory usage (an independent pool for each dir and file baton), as well as allowing the editor to be driven in a postfix-text-delta-ey way.
Make the fs-commit editor match the subpooling/reference-counting
behavior of the wc-update editor.  This allows efficient memory usage
(an independent pool for each dir and file baton), as well as allowing
the editor to be driven in a postfix-text-delta-ey way.

(struct dir_baton):  add ref_count and subpool fields.

(delete_entry):  use subpool.

(replace_root, add_directory, replace_directory): create a subpool of
parent's pool, allocate new dir_baton in there.

(replace_file, add_file):  ditto.

(change_file_prop, change_dir_prop):  duh, use baton's own subpool.

(decrement_dir_ref_count):  new func.


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

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