Re: FW: getting file or directory property/metadata

2015-11-29 Thread Daniel Shahaf
Branko Čibej wrote on Sun, Nov 29, 2015 at 01:06:32 +0100: > On 28.11.2015 18:26, Daniel Shahaf wrote: > > 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 crea

RE: FW: getting file or directory property/metadata

2015-11-28 Thread Ren Wang
: 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 +: > To be fair, though, the same trick with 'svn info' would have lead you > to svn_fs_node_created_rev(), which is documente

RE: FW: getting file or directory property/metadata

2015-11-28 Thread Ren Wang
Thank you, svn_fs_node_created_rev() is what I am looking for. -Original Message- From: Branko Čibej [mailto:br...@apache.org] Sent: Saturday, November 28, 2015 7:07 PM To: users@subversion.apache.org Subject: Re: FW: getting file or directory property/metadata On 28.11.2015 18:26

Re: FW: getting file or directory property/metadata

2015-11-28 Thread Branko Čibej
On 28.11.2015 18:26, Daniel Shahaf wrote: > 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 modif

Re: FW: getting file or directory property/metadata

2015-11-28 Thread Daniel Shahaf
[moving to dev@; please drop users@ from replies] Daniel Shahaf wrote on Sat, Nov 28, 2015 at 17:26:52 +: > 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 cr

Re: FW: getting file or directory property/metadata

2015-11-28 Thread Daniel Shahaf
Ren Wang wrote on Fri, Nov 27, 2015 at 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 no

FW: getting file or directory property/metadata

2015-11-27 Thread Ren Wang
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' > Subject: RE: getting file or directory property/metadata > > Thanks again.

Re: getting file or directory property/metadata

2015-11-26 Thread Branko Čibej
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

getting file or directory property/metadata

2015-11-26 Thread Ren Wang
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.