2 * questions.h : asking questions about working copies
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 * ====================================================================
20 #ifndef SVN_LIBSVN_WC_QUESTIONS_H
21 #define SVN_LIBSVN_WC_QUESTIONS_H
23 #include <apr_pools.h>
24 #include "svn_types.h"
25 #include "svn_error.h"
29 #endif /* __cplusplus */
32 /* Indicates which kind of timestamp to pay attention to.
33 See svn_wc__timestamps_equal_p(). */
34 enum svn_wc__timestamp_kind
36 svn_wc__text_time
= 1,
41 /* Return an SVN_ERR_WC_UNSUPPORTED_FORMAT error if the working copy
42 * format WC_FORMAT is unsupported. PATH is only used in the error
45 * Use POOL for any temporary allocation.
48 svn_wc__check_format(int wc_format
, const char *path
, apr_pool_t
*pool
);
51 /* Set *EQUAL_P to true if PATH's TIMESTAMP_KIND timestamp is the same as
52 * the one recorded in its `entries' file, else to set to false. ADM_ACCESS
53 * must be an access baton for PATH.
55 * Use POOL for any temporary allocation.
58 svn_wc__timestamps_equal_p(svn_boolean_t
*equal_p
,
60 svn_wc_adm_access_t
*adm_access
,
61 enum svn_wc__timestamp_kind timestamp_kind
,
65 /* Set *MODIFIED_P to true if VERSIONED_FILE is modified with respect
66 * to BASE_FILE, or false if it is not. The comparison compensates
67 * for VERSIONED_FILE's eol and keyword properties, but leaves
68 * BASE_FILE alone (as though BASE_FILE were a text-base file, which
69 * it usually is, only sometimes we're calling this on incoming
70 * temporary text-bases). ADM_ACCESS must be an access baton for
71 * VERSIONED_FILE. If COMPARE_TEXTBASES is false, a clean copy of the
72 * versioned file is compared to VERSIONED_FILE.
74 * If an error is returned, the effect on *MODIFIED_P is undefined.
76 * Use POOL for temporary allocation.
78 svn_error_t
*svn_wc__versioned_file_modcheck(svn_boolean_t
*modified_p
,
79 const char *versioned_file
,
80 svn_wc_adm_access_t
*adm_access
,
81 const char *base_file
,
82 svn_boolean_t compare_textbases
,
88 #endif /* __cplusplus */
90 #endif /* SVN_LIBSVN_WC_QUESTIONS_H */