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

Re: A filter for empty revisions

From: Martin Blais <blais_at_furius.ca>
Date: 2006-05-01 00:51:21 CEST

On 4/30/06, Martin Blais <blais@furius.ca> wrote:
> Hello again
>
> Here is another problem I need a fix for: I have a repository with
> a lot of empty revisions. I just want to filter them out, as I
> understand that Subversion can deal with gaps between revision
> numbers (is that completely true?).
>
> I tried using ``svndumpfilter exclude`` with a bogus path, and
> with ``--drop-empty-revs``, like this::
>
> cat dump | svndumpfilter exclude --drop-empty-revs BOGUSPATH
>
> but it does not seem to actually drop the revisions if there was
> no filtering done on the revision. I suppose what I would really
> want is something like::
>
> cat dump | svndumpfilter dropempty BOGUSPATH
>
> Has anyone written such simple empty revision filtering tool?

Arg, couldn't wait, I just wrote one:
http://furius.ca/pubcode/pub/conf/common/bin/svndropempty

(maybe this one needs a bit more thorough testing than a dump/load
cycle, which is what I did on 3 separate repositories, and it seems to
work)

cheers,

--
Martin Blais
Furius Python Training -- http://furius.ca/training/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon May 1 00:52:30 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.