Return-Path: X-Original-To: apmail-subversion-users-archive@minotaur.apache.org Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F3BF9187AC for ; Sun, 29 Nov 2015 07:58:00 +0000 (UTC) Received: (qmail 89918 invoked by uid 500); 29 Nov 2015 07:58:00 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 89871 invoked by uid 500); 29 Nov 2015 07:58:00 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 89853 invoked by uid 99); 29 Nov 2015 07:58:00 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Nov 2015 07:58:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id E3D51180A5C; Sun, 29 Nov 2015 07:57:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.129 X-Spam-Level: X-Spam-Status: No, score=0.129 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ZuKIzQOuh3-p; Sun, 29 Nov 2015 07:57:59 +0000 (UTC) Received: from mail-ig0-f174.google.com (mail-ig0-f174.google.com [209.85.213.174]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 33A2D21231; Sun, 29 Nov 2015 07:57:58 +0000 (UTC) Received: by igcmv3 with SMTP id mv3so52546409igc.0; Sat, 28 Nov 2015 23:57:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding :content-language:thread-index; bh=O1qN2cDyfu8quLY0UoOUMaHpQgWxxGExWZ7TNinvWW0=; b=aE4H4R6p+ZzOc0og4aimO7TgLd9juNHmd4kch8mEAGQ9L8sCTD8j4rJ3k6mUauz0rU /GSrRUw43werAva/fkBb6/stjWJkIQMeYrXAwAWCRZvW07wtpcp7BJp9r8DiHcyti6X7 oMlRKQsUIJcIoQ3pjf/wuAbLqwmvUnCSd6hgdMtf0c5bUjaOEINZ0bzQgquINc62YYFm Jmll9dcBX/fQMwlLLZnuIPF+59EvERnkfQSb/8WL1ZV181R7OdN6Rxm6lujM3WiZOj7X vVFwW2EKVtCgUmPbGLM6nCNvg47gIJAj/lLJBVKjk43e24TVGQVOYXdr9OCNpCCCiouU wiEQ== X-Received: by 10.50.157.39 with SMTP id wj7mr14679422igb.44.1448783871629; Sat, 28 Nov 2015 23:57:51 -0800 (PST) Received: from anninadesktop (UNVLON5554W-LP140-02-1279599642.dsl.bell.ca. [76.69.36.26]) by smtp.gmail.com with ESMTPSA id j17sm8017775ioe.41.2015.11.28.23.57.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 28 Nov 2015 23:57:51 -0800 (PST) From: "Ren Wang" To: "'Daniel Shahaf'" , Cc: References: <000a01d12857$3f6192c0$be24b840$@gmail.com> <56571B5A.5010806@apache.org> <000401d1285a$d710dfb0$85329f10$@gmail.com> <000501d1285b$5c9bbba0$15d332e0$@gmail.com> <56572F91.9060501@apache.org> <000c01d12923$a694aa50$f3bdfef0$@gmail.com> <001101d12924$f0251aa0$d06f4fe0$@gmail.com> <20151128172652.GJ2498@tarsus.local2> <20151128174123.GK2498@tarsus.local2> In-Reply-To: <20151128174123.GK2498@tarsus.local2> Subject: RE: FW: getting file or directory property/metadata Date: Sun, 29 Nov 2015 02:58:35 -0500 Message-ID: <001201d12a7b$c0375210$40a5f630$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Content-language: en-us Thread-Index: AQHg8xcUkhtTcdM9M9yLv9RX2zAmwwG7GeGYAx/W8KUBxcSxegLtmENcAS2XsfgCFZNW1QH+zt5wAfyho5eeDKlz4A== Thank you for the response. I just did a test, svn_fs_node_created_rev() works great! -----Original Message----- From: Daniel Shahaf [mailto:d.s@daniel.shahaf.name] Sent: Saturday, November 28, 2015 12:41 PM To: Ren Wang ; dev@subversion.apache.org Cc: users@subversion.apache.org Subject: Re: FW: getting file or directory property/metadata [moving to dev@; please drop users@ from replies] Daniel Shahaf wrote on Sat, Nov 28, 2015 at 17:26:52 +0000: > To be fair, though, the same trick with 'svn info' would have lead you > to svn_fs_node_created_rev(), which is documented to return "the > revision in which @a path under @a root was created", but in fact > returns the revision in which it was last modified. I think the first sentence of the following docstring is wrong: /** Set @a *revision to the revision in which @a path under @a root was * created. Use @a pool for any temporary allocations. @a *revision will * be set to #SVN_INVALID_REVNUM for uncommitted nodes (i.e. modified nodes * under a transaction root). Note that the root of an unmodified transaction * is not itself considered to be modified; in that case, return the revision * upon which the transaction was based. */ svn_error_t * svn_fs_node_created_rev(svn_revnum_t *revision, It sounds as though it gives the answer to `svn log --stop-on-copy --limit=1 -r 0:HEAD path@root`, but in fact it gives the "Last Changed Revision" of path@root. I think we need at least this patch: Index: subversion/include/svn_fs.h =================================================================== --- subversion/include/svn_fs.h (revision 1717002) +++ subversion/include/svn_fs.h (working copy) @@ -1775,2 +1775,2 @@ -/** Set @a *revision to the revision in which @a path under @a root was - * created. Use @a pool for any temporary allocations. @a *revision will +/** Set @a *revision to the revision in which @a path under @a root was last + * modified. Use @a pool for any temporary allocations. @a *revision will I didn't check the sibling functions for analogous docstring bugs. I can't commit this myself due to an outstanding issue with my apache account :-( Cheers, Daniel