[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: Ren Wang <renwang101_at_gmail.com>
Date: Thu, 21 Jan 2016 14:50:12 -0500

Hi Stefan,

Thank you very much for the response. The purpose is to the uniquely
identify a file for a specific revision or the latest revision.

What can I do if the file didn't change for a specified revision, then I
will need to get the latest revision number for the file, is there a API to
get the latest revision for a node?

Regards,

Ren

-----Original Message-----
From: Stefan Sperling [mailto:stsp_at_elego.de]
Sent: Thursday, January 21, 2016 11:01 AM
To: Ren Wang <renwang101_at_gmail.com>
Cc: 'Subversion Users' <users_at_subversion.apache.org>
Subject: Re: node unique id

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 20:49:05 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.