[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: Branko Čibej <brane_at_wandisco.com>
Date: Wed, 23 Oct 2013 18:02:51 +0200

On 23.10.2013 17:35, Juanma M. R. wrote:
> Hi Philip,
>
> First of all thank you for such a quick answer. I will try to clarify
> my previous post.
>
>
> 2013/10/23 Philip Martin <philip.martin_at_wandisco.com
> <mailto:philip.martin_at_wandisco.com>>
>
> "Juanma M. R." <juanma.mr_at_gmail.com <mailto: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.
>
>
> From the documentation here
> <http://subversion.apache.org/docs/api/1.6/group__svn__fs__nodes.html#_details>I
> got the idea that nodes themself have their own lifetime id.

You shouldn't really rely on implementation details of the versioned
filesystem in this way. Even if svnadmin shows node-rev-ids, there's no
guarantee that they won't change drastically in the future.

-- Brane

-- 
Branko Čibej | Director of Subversion
WANdisco // Non-Stop Data
e. brane_at_wandisco.com
Received on 2013-10-23 18:03:37 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.