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

Best way to capture implicit affected paths for a revision

From: Thomas S. Trias <tomtrias_at_artizan.com>
Date: Mon, 15 Mar 2010 10:33:23 -0500

Some of our utilities require a list of changed paths for a revision,
including the sub-paths included in a directory delete / replace /
copy. For the replace, the ideal situation is to capture a set of
deletes, replaces, and adds for the descendants.

We started out using a combination of svn log plus svn diff, but found
that diff does not include descendants affected by a delete. Now we are
stuck with svn log, svn diff --summarize for replaces / copies, and svn
ls (of either path_at_rev - 1 for deletes and copyfrom-path_at_copyfrom-rev
for copies). We know that the ls and diff for copies are probably
redundant, but the sanity check is nice given the delete case. Needless
to say, this has slowed things down considerably.

We are using SharpSvn, so I'm fairly certain that the ra_auth context
persists between calls. If necessary, we can utilize the underlying libsvn.

Does anyone have any ideas or suggestions on the best way to capture
this information? Is there an underlying mechanism to return the
complete graph difference for a revision?

Thanks,

-- 
Thomas S. Trias
Senior Developer
Artizan Internet Services
http://www.artizan.com/
Received on 2010-03-15 16:41:50 CET

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