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 2011/08/20 15:04:12 UTC
svn commit: r1159873 - in /subversion/trunk/subversion/libsvn_client:
client.h repos_diff.c
Author: julianfoad
Date: Sat Aug 20 13:04:12 2011
New Revision: 1159873
URL: http://svn.apache.org/viewvc?rev=1159873&view=rev
Log:
Doc string fixes.
* subversion/libsvn_client/client.h
(svn_client__get_diff_editor): Document 'walk_deleted_dirs' and better
document 'ra_session'.
* subversion/libsvn_client/repos_diff.c
(get_file_from_ra): Document the effect of 'props_only' and the use of
the RA session.
Modified:
subversion/trunk/subversion/libsvn_client/client.h
subversion/trunk/subversion/libsvn_client/repos_diff.c
Modified: subversion/trunk/subversion/libsvn_client/client.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/client.h?rev=1159873&r1=1159872&r2=1159873&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/client.h (original)
+++ subversion/trunk/subversion/libsvn_client/client.h Sat Aug 20 13:04:12 2011
@@ -595,11 +595,17 @@ svn_client__switch_internal(svn_revnum_t
DEPTH is the depth to recurse.
- RA_SESSION defines the additional RA session for requesting file
- contents.
+ RA_SESSION is an RA session through which this editor may fetch
+ properties, file contents and directory listings of the 'old' side of the
+ diff. It is a separate RA session from the one through which this editor
+ is being driven.
REVISION is the start revision in the comparison.
+ For each deleted directory, if WALK_DELETED_DIRS is true then just call
+ the 'dir_deleted' callback once, otherwise call the 'file_deleted' or
+ 'dir_deleted' callback for each individual node in that subtree.
+
If NOTIFY_FUNC is non-null, invoke it with NOTIFY_BATON for each
file and directory operated on during the edit.
Modified: subversion/trunk/subversion/libsvn_client/repos_diff.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/repos_diff.c?rev=1159873&r1=1159872&r2=1159873&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/repos_diff.c (original)
+++ subversion/trunk/subversion/libsvn_client/repos_diff.c Sat Aug 20 13:04:12 2011
@@ -315,11 +315,19 @@ get_file_mime_types(const char **mimetyp
}
-/* Get revision REVISION of the file described by B from the repository.
- * Set B->path_start_revision to the path of a new temporary file containing
- * the file's text. Set B->pristine_props to a new hash containing the
- * file's properties. Install a pool cleanup handler on B->pool to delete
- * the file. Allocate all results in B->pool.
+/* Get revision B->base_revision of the file described by B from the
+ * repository, through B->edit_baton->ra_session.
+ *
+ * Unless PROPS_ONLY is true:
+ * Set B->path_start_revision to the path of a new temporary file containing
+ * the file's text.
+ * Set B->start_md5_checksum to that file's MD-5 checksum.
+ * Install a pool cleanup handler on B->pool to delete the file.
+ *
+ * Always:
+ * Set B->pristine_props to a new hash containing the file's properties.
+ *
+ * Allocate all results in B->pool.
*/
static svn_error_t *
get_file_from_ra(struct file_baton *b,