~ubuntu-branches/ubuntu/trusty/subversion/trusty-proposed

« back to all changes in this revision

Viewing changes to subversion/libsvn_fs_base/dag.h

  • Committer: Package Import Robot
  • Author(s): Andy Whitcroft
  • Date: 2012-06-21 15:36:36 UTC
  • mfrom: (0.4.13 sid)
  • Revision ID: package-import@ubuntu.com-20120621153636-amqqmuidgwgxz1ly
Tags: 1.7.5-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - Create pot file on build.
  - Build a python-subversion-dbg package.
  - Build-depend on python-dbg.
  - Build-depend on default-jre-headless/-jdk.
  - Do not apply java-build patch.
  - debian/rules: Manually create the doxygen output directory, otherwise
    we get weird build failures when running parallel builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* dag.h : DAG-like interface filesystem, private to libsvn_fs
2
2
 *
3
3
 * ====================================================================
4
 
 * Copyright (c) 2000-2006 CollabNet.  All rights reserved.
5
 
 *
6
 
 * This software is licensed as described in the file COPYING, which
7
 
 * you should have received as part of this distribution.  The terms
8
 
 * are also available at http://subversion.tigris.org/license-1.html.
9
 
 * If newer versions of this license are posted there, you may use a
10
 
 * newer version instead, at your option.
11
 
 *
12
 
 * This software consists of voluntary contributions made by many
13
 
 * individuals.  For exact contribution history, see the revision
14
 
 * history and logs, available at http://subversion.tigris.org/.
 
4
 *    Licensed to the Apache Software Foundation (ASF) under one
 
5
 *    or more contributor license agreements.  See the NOTICE file
 
6
 *    distributed with this work for additional information
 
7
 *    regarding copyright ownership.  The ASF licenses this file
 
8
 *    to you under the Apache License, Version 2.0 (the
 
9
 *    "License"); you may not use this file except in compliance
 
10
 *    with the License.  You may obtain a copy of the License at
 
11
 *
 
12
 *      http://www.apache.org/licenses/LICENSE-2.0
 
13
 *
 
14
 *    Unless required by applicable law or agreed to in writing,
 
15
 *    software distributed under the License is distributed on an
 
16
 *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 
17
 *    KIND, either express or implied.  See the License for the
 
18
 *    specific language governing permissions and limitations
 
19
 *    under the License.
15
20
 * ====================================================================
16
21
 */
17
22
 
276
281
                                         trail_t *trail,
277
282
                                         apr_pool_t *pool);
278
283
 
279
 
 
280
284
 
281
285
/* Directories.  */
282
286
 
350
354
/* Delete the directory entry named NAME from PARENT, as part of
351
355
   TRAIL.  PARENT must be mutable.  NAME must be a single path
352
356
   component; it cannot be a slash-separated directory path.  If the
353
 
   node being deleted is a mutable directory, remove all mutable nodes
354
 
   reachable from it.  TXN_ID is the Subversion transaction under
355
 
   which this occurs.
 
357
   entry being deleted points to a mutable node revision, also remove
 
358
   that node revision and (if it is a directory) all mutable node
 
359
   revisions reachable from it.  Also delete the node-origins record
 
360
   for each deleted node revision that had no predecessor.
 
361
 
 
362
   TXN_ID is the Subversion transaction under which this occurs.
356
363
 
357
364
   If return SVN_ERR_FS_NO_SUCH_ENTRY, then there is no entry NAME in
358
365
   PARENT.  */
365
372
 
366
373
/* Delete the node revision assigned to node ID from FS's `nodes'
367
374
   table, as part of TRAIL.  Also delete any mutable representations
368
 
   and strings associated with that node revision.  ID may refer to a
369
 
   file or directory, which must be mutable.  TXN_ID is the Subversion
370
 
   transaction under which this occurs.
 
375
   and strings associated with that node revision.  Also delete the
 
376
   node-origins record for this node revision's node id, if this node
 
377
   revision had no predecessor.
 
378
 
 
379
   ID may refer to a file or directory, which must be mutable.  TXN_ID
 
380
   is the Subversion transaction under which this occurs.
371
381
 
372
382
   NOTE: If ID represents a directory, and that directory has mutable
373
383
   children, you risk orphaning those children by leaving them
383
393
/* Delete all mutable node revisions reachable from node ID, including
384
394
   ID itself, from FS's `nodes' table, as part of TRAIL.  Also delete
385
395
   any mutable representations and strings associated with that node
386
 
   revision.  ID may refer to a file or directory, which may be
387
 
   mutable or immutable.  TXN_ID is the Subversion transaction under
388
 
   which this occurs.  */
 
396
   revision.  Also delete the node-origins record for each deleted
 
397
   node revision that had no predecessor.
 
398
 
 
399
   ID may refer to a file or directory, which may be mutable or
 
400
   immutable.  TXN_ID is the Subversion transaction under which this
 
401
   occurs.  */
389
402
svn_error_t *svn_fs_base__dag_delete_if_mutable(svn_fs_t *fs,
390
403
                                                const svn_fs_id_t *id,
391
404
                                                const char *txn_id,
534
547
                                      trail_t *trail,
535
548
                                      apr_pool_t *pool);
536
549
 
537
 
 
538
550
/* Index NODE's backing data representations by their checksum.  Do
539
551
   this as part of TRAIL.  Use POOL for allocations. */
540
552
svn_error_t *svn_fs_base__dag_index_checksums(dag_node_t *node,