003 File Manager
Current Path:
/usr/src/contrib/subversion/subversion/libsvn_wc
usr
/
src
/
contrib
/
subversion
/
subversion
/
libsvn_wc
/
📁
..
📄
README
(9.5 KB)
📄
adm_crawler.c
(52.36 KB)
📄
adm_files.c
(20.21 KB)
📄
adm_files.h
(5.34 KB)
📄
adm_ops.c
(40.15 KB)
📄
ambient_depth_filter_editor.c
(21.68 KB)
📄
cleanup.c
(7.33 KB)
📄
conflicts.c
(152.54 KB)
📄
conflicts.h
(19.21 KB)
📄
context.c
(3.43 KB)
📄
copy.c
(45.56 KB)
📄
crop.c
(14.47 KB)
📄
delete.c
(19.04 KB)
📄
deprecated.c
(172.72 KB)
📄
diff.h
(7.02 KB)
📄
diff_editor.c
(116.98 KB)
📄
diff_local.c
(21.71 KB)
📄
entries.c
(107.62 KB)
📄
entries.h
(6.75 KB)
📄
externals.c
(64.3 KB)
📄
info.c
(20.66 KB)
📄
libsvn_wc.pc.in
(367 B)
📄
lock.c
(52.27 KB)
📄
lock.h
(3.07 KB)
📄
merge.c
(57.23 KB)
📄
node.c
(42.65 KB)
📄
old-and-busted.c
(42.24 KB)
📄
props.c
(89.9 KB)
📄
props.h
(5.98 KB)
📄
questions.c
(26.96 KB)
📄
relocate.c
(5.91 KB)
📄
revert.c
(37.16 KB)
📄
revision_status.c
(2.75 KB)
📄
status.c
(107.72 KB)
📄
token-map.h
(2.76 KB)
📄
translate.c
(15.68 KB)
📄
translate.h
(7.88 KB)
📄
tree_conflicts.c
(17.78 KB)
📄
tree_conflicts.h
(3.26 KB)
📄
update_editor.c
(214.25 KB)
📄
upgrade.c
(76.76 KB)
📄
util.c
(16.9 KB)
📄
wc-checks.h
(11.68 KB)
📄
wc-checks.sql
(11.67 KB)
📄
wc-metadata.h
(12.09 KB)
📄
wc-metadata.sql
(29.67 KB)
📄
wc-queries.h
(121.6 KB)
📄
wc-queries.sql
(61.37 KB)
📄
wc.h
(29.75 KB)
📄
wc_db.c
(588.65 KB)
📄
wc_db.h
(147.07 KB)
📄
wc_db_pristine.c
(35.13 KB)
📄
wc_db_private.h
(21.98 KB)
📄
wc_db_update_move.c
(175.6 KB)
📄
wc_db_util.c
(5.16 KB)
📄
wc_db_wcroot.c
(35.78 KB)
📄
wcroot_anchor.c
(8.75 KB)
📄
workqueue.c
(59.76 KB)
📄
workqueue.h
(9 KB)
Editing: context.c
/* * context.c: routines for managing a working copy context * * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * ==================================================================== */ #include <apr_pools.h> #include "svn_types.h" #include "svn_pools.h" #include "svn_dirent_uri.h" #include "svn_path.h" #include "wc.h" #include "wc_db.h" #include "svn_private_config.h" /* APR cleanup function used to explicitly close any of our dependent data structures before we disappear ourselves. */ static apr_status_t close_ctx_apr(void *data) { svn_wc_context_t *ctx = data; if (ctx->close_db_on_destroy) { svn_error_t *err = svn_wc__db_close(ctx->db); if (err) { int result = err->apr_err; svn_error_clear(err); return result; } } return APR_SUCCESS; } svn_error_t * svn_wc_context_create(svn_wc_context_t **wc_ctx, const svn_config_t *config, apr_pool_t *result_pool, apr_pool_t *scratch_pool) { svn_wc_context_t *ctx = apr_pcalloc(result_pool, sizeof(*ctx)); /* Create the state_pool, and open up a wc_db in it. * Since config contains a private mutable member but C doesn't support * we need to make it writable */ ctx->state_pool = result_pool; SVN_ERR(svn_wc__db_open(&ctx->db, (svn_config_t *)config, FALSE, TRUE, ctx->state_pool, scratch_pool)); ctx->close_db_on_destroy = TRUE; apr_pool_cleanup_register(result_pool, ctx, close_ctx_apr, apr_pool_cleanup_null); *wc_ctx = ctx; return SVN_NO_ERROR; } svn_error_t * svn_wc__context_create_with_db(svn_wc_context_t **wc_ctx, svn_config_t *config, svn_wc__db_t *db, apr_pool_t *result_pool) { svn_wc_context_t *ctx = apr_pcalloc(result_pool, sizeof(*ctx)); /* Create the state pool. We don't put the wc_db in it, because it's already open in a separate pool somewhere. We also won't close the wc_db when we destroy the context, since it's not ours to close. */ ctx->state_pool = result_pool; ctx->db = db; ctx->close_db_on_destroy = FALSE; apr_pool_cleanup_register(result_pool, ctx, close_ctx_apr, apr_pool_cleanup_null); *wc_ctx = ctx; return SVN_NO_ERROR; } svn_error_t * svn_wc_context_destroy(svn_wc_context_t *wc_ctx) { /* We added a cleanup when creating; just run it now to close the context. */ apr_pool_cleanup_run(wc_ctx->state_pool, wc_ctx, close_ctx_apr); return SVN_NO_ERROR; }
Upload File
Create Folder