Can't dump a subtree using svnrdump

2015-08-30 Thread Thorsten Schöning
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!

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning   E-Mail: thorsten.schoen...@am-soft.de
AM-SoFT IT-Systeme  http://www.AM-SoFT.de/

Telefon...05151-  9468- 55
Fax...05151-  9468- 88
Mobil..0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow



RE: Can't dump a subtree using svnrdump

2015-08-30 Thread Bert Huijben


 -Original Message-
 From: Thorsten Schöning [mailto:tschoen...@am-soft.de]
 Sent: zondag 30 augustus 2015 20:30
 To: users@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




Re: Can't dump a subtree using svnrdump

2015-08-30 Thread Thorsten Schöning
Guten Tag Bert Huijben,
am Sonntag, 30. August 2015 um 20:59 schrieben Sie:

 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.

How stupid, I've looked at those revisions, but didn't recognize they
don't contain any data or paths or such... :-/

Thanks!

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning   E-Mail: thorsten.schoen...@am-soft.de
AM-SoFT IT-Systeme  http://www.AM-SoFT.de/

Telefon...05151-  9468- 55
Fax...05151-  9468- 88
Mobil..0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow