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:br...@apache.org] Sent: Thursday, November 26, 2015 11:13 AM To: Ren Wang <renwang...@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:renwang...@gmail.com] > Sent: Thursday, November 26, 2015 9:58 AM > To: 'Branko Čibej' <br...@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:br...@apache.org] > Sent: Thursday, November 26, 2015 9:47 AM > To: users@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 > >