blob: 168478d13d5b14d0fecc9304b9412c1ae977d0fc [file] [log] [blame]
/*
* wc.h : shared stuff internal to the svn_wc library.
*
* ====================================================================
* Copyright (c) 2000-2002 CollabNet. All rights reserved.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at http://subversion.tigris.org/license-1.html.
* If newer versions of this license are posted there, you may use a
* newer version instead, at your option.
*
* This software consists of voluntary contributions made by many
* individuals. For exact contribution history, see the revision
* history and logs, available at http://subversion.tigris.org/.
* ====================================================================
*/
#ifndef SVN_LIBSVN_WC_H
#define SVN_LIBSVN_WC_H
#include <apr_pools.h>
#include "svn_types.h"
#include "svn_string.h"
#include "svn_error.h"
#include "svn_path.h"
#include "svn_xml.h"
#include "svn_wc.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#define SVN_WC__DIFF_EXT ".diff"
#define SVN_WC__TMP_EXT ".tmp"
#define SVN_WC__TEXT_REJ_EXT ".rej"
#define SVN_WC__PROP_REJ_EXT ".prej"
#define SVN_WC__BASE_EXT ".svn-base"
/*** Timestamps. ***/
/* A special timestamp value which means "use the timestamp from the
working copy". This is sometimes used in a log entry like:
<modify-entry name="foo.c" revision="5" timestamp="working"/>
*/
#define SVN_WC_TIMESTAMP_WC "working"
/*** Names and file/dir operations in the administrative area. ***/
/* Create DIR as a working copy directory. */
/* ### This function hasn't been defined nor completely documented
yet, so I'm not sure whether the "ancestor" arguments are really
meant to be urls and should be changed to "url_*". -kff */
svn_error_t *svn_wc__set_up_new_dir (svn_stringbuf_t *path,
svn_stringbuf_t *ancestor_path,
svn_revnum_t ancestor_revnum,
apr_pool_t *pool);
/* kff todo: namespace-protecting these #defines so we never have to
worry about them conflicting with future all-caps symbols that may
be defined in svn_wc.h. */
/** The files within the administrative subdir. **/
#define SVN_WC__ADM_FORMAT "format"
#define SVN_WC__ADM_README "README"
#define SVN_WC__ADM_ENTRIES "entries"
#define SVN_WC__ADM_LOCK "lock"
#define SVN_WC__ADM_TMP "tmp"
#define SVN_WC__ADM_TEXT_BASE "text-base"
#define SVN_WC__ADM_PROPS "props"
#define SVN_WC__ADM_PROP_BASE "prop-base"
#define SVN_WC__ADM_DIR_PROPS "dir-props"
#define SVN_WC__ADM_DIR_PROP_BASE "dir-prop-base"
#define SVN_WC__ADM_WCPROPS "wcprops"
#define SVN_WC__ADM_DIR_WCPROPS "dir-wcprops"
#define SVN_WC__ADM_LOG "log"
#define SVN_WC__ADM_KILLME "KILLME"
#define SVN_WC__ADM_AUTH_DIR "auth"
#define SVN_WC__ADM_EMPTY_FILE "empty-file"
/* The basename of the ".prej" file, if a directory ever has property
conflicts. This .prej file will appear *within* the conflicted
directory. */
#define SVN_WC__THIS_DIR_PREJ "dir_conflicts"
/*** General utilities that may get moved upstairs at some point. */
/* Ensure that DIR exists. */
svn_error_t *svn_wc__ensure_directory (svn_stringbuf_t *path, apr_pool_t *pool);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* SVN_LIBSVN_WC_H */
/*
* local variables:
* eval: (load-file "../../tools/dev/svn-dev.el")
* end:
*/