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

Re: Getting the node id for a new folder

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Wed, 23 Oct 2013 13:07:16 +0100

"Juanma M. R." <juanma.mr_at_gmail.com> writes:

> I would like to get the node id when I create a new folder. I would like to
> do it as a post commit action in order to store it in a DB. How could I do
> it? Any example or doc you recommend me?

To which node id are you referring? Subversion doesn't really have node
ids. There is a node-revision-id in the repository but that changes as
the node is modified in subsequent revisions. I'm not sure how it would
be useful to you, but you can get node-revision-ids by using

   svnlook changed -rREV REPOS_PATH

to identify the new paths which you then pass to

   svnlook tree --show-ids -N -rREV REPOS_PATH PATH_IN_REPOS

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*
Received on 2013-10-23 14:07:55 CEST

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.