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

get revision on which a node was added

From: Ewout <evtroost_at_vub.ac.be>
Date: 2007-03-25 17:58:21 CEST

Hello all,

Does anyone know if the svn API has a way to extract the revision
on which a particular node was added to the repository?

A pass through the header files only yielded one way: walking the
node history until the beginning. In ruby, this would look like this

hist = root.node_history(path)
hist = hist.prev until hist.prev.nil?
crev = hist.location.last

This seems quite inefficient. Is there a more optimal way of doing this?


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Mar 25 19:11:59 2007

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.