2 * resolved.c: wrapper around wc resolved 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 /* ==================================================================== */
25 #include "svn_types.h"
27 #include "svn_client.h"
28 #include "svn_error.h"
30 #include "private/svn_wc_private.h"
36 svn_client_resolved(const char *path
,
37 svn_boolean_t recursive
,
38 svn_client_ctx_t
*ctx
,
41 svn_depth_t depth
= (recursive
? svn_depth_infinity
: svn_depth_empty
);
42 return svn_client_resolved2(path
, depth
,
43 svn_wc_conflict_choose_merged
, ctx
, pool
);
47 svn_client_resolved2(const char *path
,
49 svn_wc_conflict_choice_t conflict_choice
,
50 svn_client_ctx_t
*ctx
,
53 svn_wc_adm_access_t
*adm_access
;
54 int adm_lock_level
= SVN_WC__LEVELS_TO_LOCK_FROM_DEPTH(depth
);
56 SVN_ERR(svn_wc_adm_probe_open3(&adm_access
, NULL
, path
, TRUE
,
58 ctx
->cancel_func
, ctx
->cancel_baton
,
61 SVN_ERR(svn_wc_resolved_conflict3(path
, adm_access
, TRUE
, TRUE
, depth
,
63 ctx
->notify_func2
, ctx
->notify_baton2
,
64 ctx
->cancel_func
, ctx
->cancel_baton
,
67 SVN_ERR(svn_wc_adm_close(adm_access
));