2 * cleanup.c: wrapper around wc cleanup functionality.
4 * ====================================================================
5 * Copyright (c) 2000-2004 CollabNet. All rights reserved.
7 * This software is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at http://subversion.tigris.org/license-1.html.
10 * If newer versions of this license are posted there, you may use a
11 * newer version instead, at your option.
13 * This software consists of voluntary contributions made by many
14 * individuals. For exact contribution history, see the revision
15 * history and logs, available at http://subversion.tigris.org/.
16 * ====================================================================
19 /* ==================================================================== */
27 #include "svn_client.h"
28 #include "svn_config.h"
31 #include "svn_private_config.h"
37 svn_client_cleanup(const char *dir
,
38 svn_client_ctx_t
*ctx
,
41 const char *diff3_cmd
;
43 svn_config_t
*cfg
= ctx
->config
44 ? apr_hash_get(ctx
->config
, SVN_CONFIG_CATEGORY_CONFIG
,
48 svn_config_get(cfg
, &diff3_cmd
, SVN_CONFIG_SECTION_HELPERS
,
49 SVN_CONFIG_OPTION_DIFF3_CMD
, NULL
);
51 err
= svn_wc_cleanup2(dir
, diff3_cmd
, ctx
->cancel_func
, ctx
->cancel_baton
,
53 svn_sleep_for_timestamps();