[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: Max Bowsher <maxb_at_ukf.net>
Date: 2004-04-03 10:22:30 CEST

C. Michael Pilato wrote:
> "Max Bowsher" <maxb@ukf.net> writes:
>> What do people think of making "svn log path" show revisions in
>> which path was copied from, in addition to what it currently shows?
> Interesting to me only if you plan only to show the revisions in which
> PATH *or any of its parents* was the actual source of a copy,


> and if
> you can answer these questions without a cursor walk of any of the DB
> tables.

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 \
        return True # Show this revision
return False # Show this revision

I guess that is more db lookups than you are happy with?


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Apr 3 10:23:03 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.