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 0682A975A for ; Wed, 25 Jan 2012 14:51:38 +0000 (UTC) Received: (qmail 37802 invoked by uid 500); 25 Jan 2012 14:51:37 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 37724 invoked by uid 500); 25 Jan 2012 14:51:37 -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 37717 invoked by uid 99); 25 Jan 2012 14:51:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2012 14:51:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.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; Wed, 25 Jan 2012 14:51:36 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id D4A4023888CD for ; Wed, 25 Jan 2012 14:51:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1235778 - /subversion/trunk/subversion/libsvn_repos/commit.c Date: Wed, 25 Jan 2012 14:51:15 -0000 To: commits@subversion.apache.org From: hwright@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120125145115.D4A4023888CD@eris.apache.org> Author: hwright Date: Wed Jan 25 14:51:15 2012 New Revision: 1235778 URL: http://svn.apache.org/viewvc?rev=1235778&view=rev Log: Ev2 shims: Fix a couple of filesystem paths, and use the base revision when fetching kind information. Current number of failing Ev2 tests: 30 * subversion/libsvn_repos/commit.c (kind_fetch_func): Use the base_revision to fetch the correct kind. (fetch_base_func): Canonicalize our fs path. Modified: subversion/trunk/subversion/libsvn_repos/commit.c Modified: subversion/trunk/subversion/libsvn_repos/commit.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/commit.c?rev=1235778&r1=1235777&r2=1235778&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_repos/commit.c (original) +++ subversion/trunk/subversion/libsvn_repos/commit.c Wed Jan 25 14:51:15 2012 @@ -823,6 +823,7 @@ kind_fetch_func(svn_kind_t *kind, { struct edit_baton *eb = baton; svn_node_kind_t node_kind; + svn_fs_root_t *fs_root; if (!SVN_IS_VALID_REVNUM(base_revision)) base_revision = svn_fs_txn_base_revision(eb->txn); @@ -831,6 +832,7 @@ kind_fetch_func(svn_kind_t *kind, { /* This is a copyfrom URL. */ path = svn_uri_skip_ancestor(eb->repos_url, path, scratch_pool); + path = svn_fspath__canonicalize(path, scratch_pool); } else { @@ -840,7 +842,9 @@ kind_fetch_func(svn_kind_t *kind, path = svn_fspath__join(eb->base_path, path, scratch_pool); } - SVN_ERR(svn_fs_check_path(&node_kind, eb->txn_root, path, scratch_pool)); + SVN_ERR(svn_fs_revision_root(&fs_root, eb->fs, base_revision, scratch_pool)); + + SVN_ERR(svn_fs_check_path(&node_kind, fs_root, path, scratch_pool)); *kind = svn__kind_from_node_kind(node_kind, FALSE); return SVN_NO_ERROR; @@ -868,6 +872,7 @@ fetch_base_func(const char **filename, { /* This is a copyfrom URL. */ path = svn_uri_skip_ancestor(eb->repos_url, path, scratch_pool); + path = svn_fspath__canonicalize(path, scratch_pool); } else {