[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-31 14:52:35 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?

Thanks,
Ewout

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Mar 31 18:07:10 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.