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

Re: Suggest: Make "svn log path" show revisions where path was copied from, in addition to those in which path changed.

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2004-04-03 19:17:48 CEST

"Max Bowsher" <maxb@ukf.net> writes:

> I'm afraid I am doing a walk (though not by cursor). Here is the algorithm
> in pseuso-python:
>
> for rev in range:
> for copy in rev.txn.copies:
> if path.is_prefix_of(copy.src_path) or \
> copy.src_path.is_prefix_of(copy):
> return True # Show this revision
> return False # Show this revision
>
> I guess that is more db lookups than you are happy with?

Yeah, I'm afraid so. This is the exact same algorithm I used in the
first version of the FS history code (except in reverse, walking
backwards through time) -- and it quickly brought Berkeley DB to its
knees with lock consumption.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Apr 3 19:19:19 2004

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.