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

Request: expose the peg algorithm at the svn API level

From: Barry Scott <barry_at_barrys-emacs.org>
Date: 2006-09-30 16:57:47 CEST

In the pysvn WorkBench I'm finding that I need access to the "peg"
algorithm
so that I can find out the URL of a item in its history.

I don't think this is implemented.

For example WorkBench is not limited to using the svn_client_diff*() API
for its diff feature.

If I do use svn_client_diff_peg() it will work out the old item's URL
that is
needed to do the diff. However if I replace svn_client_diff_peg with
my own
code I'm missing an API call that will get me the URL at a peg revision.

I need this URL so that I can svn_client_cat to get the text of the
file to diff.

As it stands I think I'm going to have to implement the peg algorithm
myself.
It seems that I need to walk the log changed_paths and notice all the
renaming that
goes on to figure out the URL at any revision.

This seems to me to be a reasonable feature that the svn API should
offer. The
alternative would be to have _peg versions of a lot more commands.
svn_client_cat_peg,
svn_client_info_peg etc.

Barry

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Sep 30 16:58:04 2006

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.