| Re: Splitting out project from repo
From: Bryon Winger <bryonwinger_at_gmail.com>
 Date: Tue, 2 Apr 2013 14:32:05 -0700 (PDT) 
I am going through a similar process myself and have some questions about 
 > If I understand correctly, you manually retrieve each version where 
  
 to process every unrelated revision. For one project, I am only concerned 
 with about 200 revisions, spread out over 210k unrelated revisions.
  
 # This example took around 8 hours:
 svnadmin dump /path/to/master | svndumpfilter --drop-empty-revs \
 # However, when I run this on the same project:
 for rev in `svn log -r0:HEAD file:///path/to/master/$PROJECT | egrep \
 "^r[0-9]+ |" | cut -d " " -f1`; do
    svnadmin dump --incremental -r ${rev:1} /path/to/master | svndumpfilter \
                                              include $PROJECT >> 
 done
  
 … I can have a usable dump file in under 30 seconds. I realize this will 
 longer for larger projects, but I think it makes my point. ‘svnadmin dump’ 
 still creating a full dump stream for each revision before svndumpfilter 
 that revision to decide to keep it or not.
  
 > Are you sure your approach doesn't need other paths 
 I absolutely agree with this checking for this. You can’t successfully pull 
 a single path using svnadmin dump / svndumpfilter if there are copies from 
 location outside of whatever you are filtering for.
  
 I did notice that using svnrdump pointing to url/project seems to get 
 around the outside-copy-sources issue, but I think that’s another 
 discussion altogether.
  
 > > svnadmin dump $repo --quiet -r $rev --incremental >> $project.$rev.bak 
  
 problem or just with all of his node-path processing? I have had no 
 trouble appending to existing dump files.
  
 Thanks,
 Bryon Winger
 | 
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.