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

Re: node unique id

From: Stefan Sperling <stsp_at_elego.de>
Date: Thu, 21 Jan 2016 17:01:06 +0100

On Thu, Jan 21, 2016 at 10:25:09AM -0500, Ren Wang wrote:
> Can I assume the node revision id is unique in subversion?

Yes, but it is specific to a particular filesystem instance.
If you dump/load the repository all IDs will change.

> If so, is there
> an API to get it by repository root, path and revision number parameters?

svn_fs_paths_changed2() declared in include/subversion/svn_fs.h
provides the IDs for changed paths in a particular revision.

An ID is represented as an opaque object svn_fs_id_t.
The contents of this object depend on the filesystem backend used.
There are a few functions to operate on svn_fs_id_t, such as
svn_fs_unparse_id().

It's unclear what purpose you'd like to use these for so it's hard
to give more specific advice.
Received on 2016-01-21 17:01:18 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.