Return-Path: Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: (qmail 9254 invoked from network); 4 Mar 2010 12:06:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Mar 2010 12:06:28 -0000 Received: (qmail 9009 invoked by uid 500); 4 Mar 2010 12:06:18 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 8997 invoked by uid 500); 4 Mar 2010 12:06:18 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org, commits@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 8990 invoked by uid 99); 4 Mar 2010 12:06:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Mar 2010 12:06:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Mar 2010 12:06:17 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 87B18238890A; Thu, 4 Mar 2010 12:05:57 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r918958 - /subversion/trunk/subversion/libsvn_wc/adm_files.c Date: Thu, 04 Mar 2010 12:05:57 -0000 To: commits@subversion.apache.org From: julianfoad@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100304120557.87B18238890A@eris.apache.org> 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 */