74
74
const svn_test_opts_t *opts,
77
/* ---------------------------------------------------------------------- */
78
/* Functions for easy manipulation of a WC. Paths given to these functions
79
* can be relative to the WC root as stored in the WC baton. */
81
/* Return the abspath of PATH which is absolute or relative to the WC in B. */
82
#define sbox_wc_path(b, path) \
83
(svn_dirent_join((b)->wc_abspath, (path), (b)->pool))
85
/* Create a file on disk at PATH, with TEXT as its content. */
87
sbox_file_write(svn_test__sandbox_t *b, const char *path, const char *text);
89
/* Schedule for addition the single node that exists on disk at PATH,
92
sbox_wc_add(svn_test__sandbox_t *b, const char *path);
94
/* Create a single directory on disk. */
96
sbox_disk_mkdir(svn_test__sandbox_t *b, const char *path);
98
/* Create a single directory on disk and schedule it for addition. */
100
sbox_wc_mkdir(svn_test__sandbox_t *b, const char *path);
102
/* Copy the WC file or directory tree FROM_PATH to TO_PATH which must not
103
* exist beforehand. */
105
sbox_wc_copy(svn_test__sandbox_t *b, const char *from_path, const char *to_path);
107
/* Revert a WC file or directory tree at PATH */
109
sbox_wc_revert(svn_test__sandbox_t *b, const char *path, svn_depth_t depth);
113
sbox_wc_delete(svn_test__sandbox_t *b, const char *path);
117
sbox_wc_exclude(svn_test__sandbox_t *b, const char *path);
121
sbox_wc_commit(svn_test__sandbox_t *b, const char *path);
125
sbox_wc_commit_ex(svn_test__sandbox_t *b,
126
apr_array_header_t *targets,
131
sbox_wc_update(svn_test__sandbox_t *b, const char *path, svn_revnum_t revnum);
134
sbox_wc_update_depth(svn_test__sandbox_t *b,
138
svn_boolean_t sticky);
141
sbox_wc_switch(svn_test__sandbox_t *b,
148
sbox_wc_resolved(svn_test__sandbox_t *b, const char *path);
152
sbox_wc_resolve(svn_test__sandbox_t *b, const char *path, svn_depth_t depth,
153
svn_wc_conflict_choice_t conflict_choice);
157
sbox_wc_move(svn_test__sandbox_t *b, const char *src, const char *dst);
159
/* Set property NAME to VALUE on PATH. If VALUE=NULL, delete the property. */
161
sbox_wc_propset(svn_test__sandbox_t *b,
166
/* Create the Greek tree on disk in the WC, and commit it. */
168
sbox_add_and_commit_greek_tree(svn_test__sandbox_t *b);
78
171
/* Create a WC directory at WC_ABSPATH containing a fake WC DB, generated by
79
172
* executing the SQL statements EXTRA_STATEMENTS in addition to the standard