svndumpfilter fails with “Invalid copy source path…” error

前端 未结 3 1602
轻奢々
轻奢々 2020-12-31 09:00

I want to move part of my SVN repo offsite, onto an AWS instance & am following this page (Repository Maintenance)

I have taken a dump of the whole r

相关标签:
3条回答
  • 2020-12-31 09:46

    I've tried at least 4 different applications to do that, the only that really worked was using svndumpfilterIN :

    svnadmin dump c:\repo > all_repo
    svndumpfilter.py all_repo --repo=c:\repo --output-dump=m1 include M1
    

    Here is my full answer on linux.

    Here is what I tried and didn't worked :

    • http://furius.ca/pubcode/pub/conf/bin/svndumpfilter3.html (from previous answer)
    • Including the problematic path as said in another previous answer and here. Problem : I still have paths I do not want in the target dump
    • svndumpsanitizer (I still have paths I do not want in the target dump also)
    0 讨论(0)
  • 2020-12-31 09:47

    At some point /Personal/Richard/M1_Config has been copied to the M1 path. The error message is say that it can't perform the copy since the source has been filtered out. Check the revision that svndumpfilter complained about.

    You must include the /Personal/Richard/M1_Config path even if you don't want it in the final import. You also need to include the /Personal/Richard and /Personal paths since each resides in it's parent. Your command needs to be:

    type all_repo | svndumpfilter include M1 "/Personal" --drop-empty-revs > m1 
    

    If you have other paths, say /Personal/James that aren't needed and you wish to exclude them then you can run a second svndumpfilter to strip them:

    type m1 | svndumpfilter exclude "/Personal/James" --drop-empty-revs > m1_2
    
    0 讨论(0)
  • 2020-12-31 09:54

    I run into the same problem. We have many remotely moved and copied paths in the repository and the only tool that really helped was svndumpsanitizer A single file C program that easily can be compiled on cygwin or Linux and it worked like a charm on a 170 GB incremental dump file with ~160,000 commits.

    0 讨论(0)
提交回复
热议问题