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

RE: Can't dump a subtree using svnrdump

From: Bert Huijben <bert_at_qqmail.nl>
Date: Sun, 30 Aug 2015 20:59:50 +0200

> -----Original Message-----
> From: Thorsten Schöning [mailto:tschoening_at_am-soft.de]
> Sent: zondag 30 augustus 2015 20:30
> To: users_at_subversion.apache.org
> Subject: Can't dump a subtree using svnrdump
>
> Hi all,
>
> I would like to dump one or maybe two subtrees of the ASF repo and
> whatever I feed to svnrdump I always get the contents of unrelated
> subtrees as well. If I don't provide a revision range I get thew
> complete repo, if I provide a range where my subtrees have changed, I
> get all the revisions of unrelated subtrees in between as well. In the
> documentation and such I can read that svnrdump does support subtrees,
> so there must be something wrong ho I call it.
>
> What I want is the following URL:
>
> > https://svn.apache.org/repos/asf/incubator/log4cxx
>
> Which was originally added as the following:
>
> > https://svn.apache.org/repos/asf/logging/log4cxx
>
> What I've tried so far:
>
> > svnrdump.exe dump https://svn.apache.org/repos/asf/incubator/log4cxx
> > svnrdump.exe dump https://svn.apache.org/repos/asf/logging/log4cxx
> > svnrdump.exe dump https://svn.apache.org/repos/asf/logging/log4cxx -r
> 307452:1554780
> > svnrdump.exe dump https://svn.apache.org/repos/asf/incubator/log4cxx -r
> 1554780:HEAD
>
> But all of those always dump revisions not related to my subtrees.
>
> What am I doing wrong? Thanks!

I don't think you are doing anything wrong.
Any revision in a repository applies to each path that exists at that revision and the only way to ensure a 100% compatible dump with matching revision numbers is to produce empty revisions for revisions that don't have relevant paths.

So yes, you will see many more revisions than just your own project... but if filtered correctly not the changes in those revisions.

Once you have dumps you can use tools like 'svndumpfilter' to filter out dummy/stub revisions, fixing things like copies and merges.

I just used this to import the Serf repository into https://svn.apache.org/repos/asf/serf, while filtering a thousand stub revisions.

        Bert
Received on 2015-08-30 21:00:00 CEST

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.