subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r918958 - /subversion/trunk/subversion/libsvn_wc/adm_files.c
Date Thu, 04 Mar 2010 12:05:57 GMT
Author: julianfoad
Date: Thu Mar  4 12:05:57 2010
New Revision: 918958

URL: http://svn.apache.org/viewvc?rev=918958&view=rev
Log:
* subversion/libsvn_wc/adm_files.c
  (open_adm_file): Write a doc string.

Modified:
    subversion/trunk/subversion/libsvn_wc/adm_files.c

Modified: subversion/trunk/subversion/libsvn_wc/adm_files.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/adm_files.c?rev=918958&r1=918957&r2=918958&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/adm_files.c (original)
+++ subversion/trunk/subversion/libsvn_wc/adm_files.c Thu Mar  4 12:05:57 2010
@@ -373,6 +373,14 @@
 
 /*** Opening and closing files in the adm area. ***/
 
+/* Create and open a writable file in the admin temporary area of the WC
+   directory PATH, in a subdirectory named SUBDIR (such as "text-base"),
+   with the name FNAME and extra EXTENSION (such as ".svn-base").  If the
+   file already exists, first delete it.  Set *STREAM to a writable stream
+   to this file, and (if SELECTED_PATH is not NULL) set *SELECTED_PATH to
+   the path to this file, both allocated in RESULT_POOL.
+
+   Closing the stream will close (but not delete) the file. */
 static svn_error_t *
 open_adm_file(svn_stream_t **stream,
               const char **selected_path,
@@ -388,12 +396,10 @@
   /* Extend with tmp name. */
   path = extend_with_adm_name(path, extension, TRUE, result_pool,
                               subdir, fname, NULL);
-
-  err = svn_stream_open_writable(stream, path, result_pool, scratch_pool);
-
   if (selected_path)
     *selected_path = path;  /* note: built in result_pool */
 
+  err = svn_stream_open_writable(stream, path, result_pool, scratch_pool);
   if (err && APR_STATUS_IS_EEXIST(err->apr_err))
     {
       /* Exclusive open failed, delete and retry */



Mime
View raw message