Return-Path: X-Original-To: apmail-subversion-commits-archive@minotaur.apache.org Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6CF72DE07 for ; Wed, 19 Sep 2012 13:33:47 +0000 (UTC) Received: (qmail 562 invoked by uid 500); 19 Sep 2012 13:33:47 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 99880 invoked by uid 500); 19 Sep 2012 13:33:43 -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 Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 99807 invoked by uid 99); 19 Sep 2012 13:33:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2012 13:33:41 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 209.85.215.171 is neither permitted nor denied by domain of codematters@ntlworld.com) Received: from [209.85.215.171] (HELO mail-ey0-f171.google.com) (209.85.215.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2012 13:33:31 +0000 Received: by eaah11 with SMTP id h11so505152eaa.16 for ; Wed, 19 Sep 2012 06:33:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:x-proxyuser-ip:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version:content-type :x-gm-message-state; bh=d/ibXtSlXgOB6UvROrwk3IUnr6YQRFtT1TESOclEdOc=; b=kK+dHABwVK6LMzbIVpEoXFd+bw6z/mBgEAKKUg082WdxblolR+5Wpms/4Z274P/L05 oP5qwUqMwsbJf/18Hb8SYq4QTN2wH96ekqaEvOrmD/83/cGAEd6+2RVPHA5P9NoSRfGU M+1c1X1F2qi2vDMDrbyg0T7Sg6+wlBv7vOgk7WMwYCNt34ygTDcys/a4cLbnYtkt5Swh 4RRuLfWs+cpQMxYJ8sU8upZ1yvZiql3JwjUVzfXjovtyAlFBmQWuYVjToSXmRH3DgXUj zU3IrlBNEpKTXXHAE//Ww1XO+M9HvfImitWP7BfGkg4bqEtC7QHGfPVeazhtbbT5SEOm GFCg== Received: by 10.14.215.193 with SMTP id e41mr3588387eep.44.1348061590844; Wed, 19 Sep 2012 06:33:10 -0700 (PDT) Received: from (know-mailgateway-3.server.virginmedia.net. [62.254.26.105]) by mx.google.com with ESMTPS id h2sm7380380eeo.3.2012.09.19.06.33.09 (version=SSLv3 cipher=OTHER); Wed, 19 Sep 2012 06:33:10 -0700 (PDT) Sender: MARTIN PHILIP Received: from source ([86.17.224.110]) by smtp.virginmedia.com with SMTP; Wed, 19 Sep 2012 13:33:10 +0000 (GMT) X-ProxyUser-IP: 86.17.224.110 Received: by cpc2-farn6-0-0-cust109.6-2.cable.virginmedia.com (Postfix, from userid 1000) id 926E2360BB; Wed, 19 Sep 2012 14:33:08 +0100 (BST) From: Philip Martin To: dev@subversion.apache.org Cc: commits@subversion.apache.org Subject: Re: svn commit: r1387560 - in /subversion/branches/compressed-pristines/subversion/libsvn_wc: wc_db.c wc_db_private.h wc_db_wcroot.c References: <20120919124524.AAF1723888EA@eris.apache.org> Date: Wed, 19 Sep 2012 14:33:08 +0100 In-Reply-To: <20120919124524.AAF1723888EA@eris.apache.org> (ashod@apache.org's message of "Wed, 19 Sep 2012 12:45:24 -0000") Message-ID: <87y5k6jfxn.fsf@stat.home.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gm-Message-State: ALoCoQmnnQ08poodMoDOf0aseSZd/V3Xl3wwdNpyt0jOxbCjQmBKIQPSsSlgTHC8qiNgwGcTSJC8 ashod@apache.org writes: > Author: ashod > Date: Wed Sep 19 12:45:24 2012 > New Revision: 1387560 > > URL: http://svn.apache.org/viewvc?rev=1387560&view=rev > Log: > Improved create_pristine_db and tests are passing again. The small commits are good but the log message should still detail the changes. > URL: http://svn.apache.org/viewvc/subversion/branches/compressed-pristines/subversion/libsvn_wc/wc_db_private.h?rev=1387560&r1=1387559&r2=1387560&view=diff > ============================================================================== > --- subversion/branches/compressed-pristines/subversion/libsvn_wc/wc_db_private.h (original) > +++ subversion/branches/compressed-pristines/subversion/libsvn_wc/wc_db_private.h Wed Sep 19 12:45:24 2012 > @@ -127,6 +127,13 @@ svn_wc__db_pdh_create_wcroot(svn_wc__db_ > apr_pool_t *result_pool, > apr_pool_t *scratch_pool); > > +/* Creates a Pristine DB. */ > +svn_error_t * > +create_pristine_db(svn_sqlite__db_t **pdb, > + const char *dir_abspath, > + const char *pdb_fname, > + apr_pool_t *result_pool, > + apr_pool_t *scratch_pool); As a private wc function it should be called svn_wc__create_pristine. > --- subversion/branches/compressed-pristines/subversion/libsvn_wc/wc_db_wcroot.c (original) > +++ subversion/branches/compressed-pristines/subversion/libsvn_wc/wc_db_wcroot.c Wed Sep 19 12:45:24 2012 > @@ -505,10 +505,9 @@ svn_wc__db_wcroot_parse_local_abspath(sv > SVN_ERR(svn_sqlite__exec_statements(sdb, > STMT_VERIFICATION_TRIGGERS)); > #endif > - /* Open the Pristine DB. */ > - err = svn_wc__db_util_open_db(&pdb, local_abspath, PDB_FILE, > - svn_sqlite__mode_readwrite, NULL, > - db->state_pool, scratch_pool); > + /* Open/Create the Pristine DB. */ > + create_pristine_db(&pdb, local_abspath, PDB_FILE, > + db->state_pool, scratch_pool); err = svn_wc__create_pristine(... > if (err == NULL) > { > break; > -- Philip