--- subversion/include/svn_delta.h (revision 151608) +++ subversion/include/svn_delta.h (local) @@ -808,6 +808,9 @@ typedef struct svn_delta_editor_t * copy), and the origin of the copy may be recorded as * @a copyfrom_path under @a copyfrom_revision. * + * When adding a file without history, you must always call @c + * apply_textdelta, even if the file is empty. + * * Allocations for the returned @a file_baton should be performed in * @a file_pool. It is also typical to save this pool for later usage * by @c apply_textdelta and possibly @c close_file. --- subversion/libsvn_fs_base/tree.c (revision 151608) +++ subversion/libsvn_fs_base/tree.c (local) @@ -3088,7 +3088,7 @@ txn_body_make_file(void *baton, /* Make a record of this modification in the changes table. */ SVN_ERR(add_change(root->fs, txn_id, path, svn_fs_base__dag_get_id(child), - svn_fs_path_change_add, 0, 0, trail, trail->pool)); + svn_fs_path_change_add, 1, 0, trail, trail->pool)); return SVN_NO_ERROR; } --- subversion/libsvn_fs_fs/tree.c (revision 151608) +++ subversion/libsvn_fs_fs/tree.c (local) @@ -2135,7 +2135,7 @@ fs_make_file(svn_fs_root_t *root, /* Make a record of this modification in the changes table. */ SVN_ERR(add_change(root->fs, txn_id, path, svn_fs_fs__dag_get_id(child), - svn_fs_path_change_add, 0, 0, SVN_INVALID_REVNUM, NULL, + svn_fs_path_change_add, 1, 0, SVN_INVALID_REVNUM, NULL, pool)); return SVN_NO_ERROR;