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

Re: retrieving changelog of deleted files.

From: Alan Knowles <alan_at_akbkhome.com>
Date: 2005-05-10 05:13:57 CEST

I was hoping to use it on the xul interface, unfortunatly something as
simple as this produces 1.2Mb of data. (and this is not the root folder,
where the original test was to occur..)

svn log -v http://www.akbkhome.com/svn/akpear | wc
29087 115706 1267769

looking at the client api / subversion book, it doesnt look like there
is any method of either getting log info for
- single level (eg. just log of files in this folder, not subfolders)
- ls (with deleted items and last modified.)

The only other way I can think of is to do a search, eg.
a) get head revision: svn log top of directory -rH

REV = SPAN = HEAD

while (SPAN != 1) {
        SPAN = SPAN/2
        if (is_error(svn log -rREV missing.file)) {
                REV = REV -SPAN;
                continue;
        }
        REV = REV + SPAN;
}
...
On larger results sets, it would be quicker than doing the grep...

It's a pretty edge case, but would have been nice to have in the xul
interface..

Regards
Alan

On Mon, 2005-05-09 at 21:41 -0500, Ben Collins-Sussman wrote:
> On May 9, 2005, at 9:13 PM, Alan Knowles wrote:
>
> > I was attempting to find out when a file or folder was deleted, but
> > could not find any 'clean' way of doing it, has anyone any
> > suggestions..
> >
> > obviously using log on the root folder, and grepping for the file way,
> > but it's horribly inefficient/slow..
> >
>
> Run 'svn log -v' on the immediate parent directory, and grep. Much
> faster, because you're looking at far fewer revisions.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 10 05:13:56 2005

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