|
Ok, let me see if I can explain this better.
Right now I have repositories like this:
/main (rep)
/main/info
/main/info/contact
/main/info/personnel
/main/info/faq
/main/stuff
/main/morestuff
/resource1 (rep)
/resource2 (rep)
...
I want to create a folder on the same level as the main repository and repositories inside it to look like this:
/main (rep)
/main/stuff
/main/morestuff
/resource1 (rep)
/resource2 (rep)
/info
/info/contact (rep)
/info/personnel (rep)
/info/faq (rep)
So far I've come up with this:
mkdir info
svnadmin dump ./main main-dump
svndumpfilter include /info/contact < main-dump > contact-dump
svndumpfilter include /info/personnel < main-dump > personnel-dump
svndumpfilter include /info/faq < main-dump > faq-dump
svnadmin create /info/contact ; svnadmin load /info/contact < contact-dump
svnadmin create /info/personnel ; svnadmin load /info/personnel < personnel-dump
svnadmin create /info/faq ; svnadmin load /info/faq < faq-dump
My first question is will this work the way I'm hoping?
My second question is what to do about the main repository since I still want to keep data in there but I want to get rid of what's going into the new repositories? I'd imagine I'd have to use some kind of svndumpfilter include/exclude, but I'd have to do it for multiple directories. Is that possible?
Could I just rmdir -r the info/ folder in the main repository?
Also, since I've made a dozen revisions to the main/ repository specifically for changes in the info section (hence my wanting to separate them), can I use the --drop-empty-revs and --renumber-revs on svndumpfilter to fix the revision numbering? Do I need to use it every time I use svndumpfilter?
Thank you so much for the help!
|