You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2010/01/28 18:16:41 UTC
svn commit: r904168 - /subversion/trunk/subversion/libsvn_wc/wc_db.h
Author: julianfoad
Date: Thu Jan 28 17:16:41 2010
New Revision: 904168
URL: http://svn.apache.org/viewvc?rev=904168&view=rev
Log:
* subversion/libsvn_wc/wc_db.h
Document the conventions about parameter order and *_ABSPATH parameters at
the top of the file. Remove obsolete "###" comments about this and about
pool conventions.
Modified:
subversion/trunk/subversion/libsvn_wc/wc_db.h
Modified: subversion/trunk/subversion/libsvn_wc/wc_db.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc_db.h?rev=904168&r1=904167&r2=904168&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db.h (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db.h Thu Jan 28 17:16:41 2010
@@ -77,7 +77,15 @@
resulting impact on memory consumption (which should still be minimal).
- PARAMETER NAMING
+ PARAMETER CONVENTIONS
+
+ * Parameter Order
+ - any output arguments
+ - DB
+ - LOCAL_ABSPATH
+ - any other input arguments
+ - RESULT_POOL
+ - SCRATCH_POOL
* DB
This parameter is the primary context for all operations on the
@@ -85,6 +93,10 @@
function, and maintains information and state about every working
copy "touched" by any of the APIs in this interface.
+ * *_ABSPATH
+ All *_ABSPATH parameters in this API are absolute paths in the local
+ filesystem, represented in Subversion internal canonical form.
+
* LOCAL_ABSPATH
This parameter specifies a particular *versioned* node in the local
filesystem. From this node, a working copy root is implied, and will
@@ -257,12 +269,6 @@
} svn_wc__db_lock_t;
-/* ### note conventions of "result_pool" for the pool where return results
- ### are allocated, and "scratch_pool" for the pool that is used for
- ### intermediate allocations (and which can be safely cleared upon
- ### return from the function).
-*/
-
/* ### NOTE: I have not provided docstrings for most of this file at this
### point in time. The shape and extent of this API is still in massive
### flux. I'm iterating in public, but do not want to doc until it feels
@@ -271,16 +277,6 @@
/* ### where/how to handle: text_time, locks, working_size */
-/* ### update docstrings: all paths should be internal/canonical */
-
-/**
- * ### KFF: Would be good to state, here or in an introductory comment
- * ### at the top of this file, whether subsequent 'path' parameters
- * ### are absolute, or relative to the root at which @a *db was
- * ### opened, or perhaps that both are acceptable.
- */
-/* ### all paths in this API are absolute, and internal/canonical form. */
-
/**
* @defgroup svn_wc__db_admin General administractive functions
@@ -1222,15 +1218,6 @@
### original_uuid will be NULL
### original_revision will be SVN_INVALID_REVNUM
- ### KFF: The position of 'db' in the parameter list is sort of
- ### floating around (e.g., compare this func with the next one).
- ### Would be nice to keep it consistent. For example, it always
- ### comes first, or always comes first after any result params, or
- ### whatever.
- ### BH: 'db' is the first argument after the output arguments, the next
- ### is always 'local_abspath'. Next are other input arguments. Result
- ### and scratch pool are last.
-
### note that @a base_shadowed can be derived. if the status specifies
### an add/copy/move *and* there is a corresponding node in BASE, then
### the BASE has been deleted to open the way for this node.