[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

FW: getting file or directory property/metadata

From: Ren Wang <renwang101_at_gmail.com>
Date: Fri, 27 Nov 2015 10:04:38 -0500

Thanks, that makes sense.

Here is another question. How to get the latest revision id for a node? I see the svnlook is calling svn_fs_node_id() to get node id, but couldn't find a reference to get the latest revision of id for a node.

From the subversion client side, I can see the latest version id showing on the subversion client panel, such as on TortoseSVN, I guess it must has an interface on the repos or fs layer.

-----Original Message-----
From: Branko Čibej [mailto:brane_at_apache.org]
Sent: Thursday, November 26, 2015 11:13 AM
To: Ren Wang <renwang101_at_gmail.com>
Subject: Re: getting file or directory property/metadata

There have been two kinds of properties in Subversion since before 1.0. :)

A transacton property is like a revision property, but belongs to a transaction object, which may, when committed, become a new revision. We use transactions to build up tree and content changes, then commit them (which is a complex process) to create new revisions. At any time, there can be an number of open transactions; but only one revision at a time can be committed.

-- Brane

On 26.11.2015 16:01, Ren Wang wrote:
> BTW, what's transaction property? I noticed there is another API called:
> svn_fs_txn_prop()
>
> -----Original Message-----
> From: Ren Wang [mailto:renwang101_at_gmail.com]
> Sent: Thursday, November 26, 2015 9:58 AM
> To: 'Branko Čibej' <brane_at_apache.org>
> Subject: RE: getting file or directory property/metadata
>
> Thanks again. Glad to know there're two kinds of properties in subversion now.
>
> -----Original Message-----
> From: Branko Čibej [mailto:brane_at_apache.org]
> Sent: Thursday, November 26, 2015 9:47 AM
> To: users_at_subversion.apache.org
> Subject: Re: getting file or directory property/metadata
>
> On 26.11.2015 15:32, Ren Wang wrote:
>> How to get a file or directory property by using API, is it
>> svn_fs_node_prop()? I was trying to get svn:author (a default
>> property) for a file from the repository, but the API always returns NULL.
> You already got the answer to that question in a previous response:
> svn:author is a *revision* property, not a *node* property. You should be looking at the properties for the revision in which the file was last changed.
>
> -- Brane
>
>
Received on 2015-11-27 16:03:59 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.