You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Martin Blais <bl...@furius.ca> on 2006/04/30 21:32:21 UTC
A filter for empty revisions
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?
--
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
Re: A filter for empty revisions
Posted by Martin Blais <bl...@furius.ca>.
On 4/30/06, Martin Blais <bl...@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