Svnadmin load encounters an E125005 Error

Source: Internet
Author: User

During SVN upgrade, the E125005 error occurs because some developers do not have line breaks when submitting comment, which is a problem with the SVN plug-in of Eclipse,

 

 

Svnadmin: E125005: Invalid property valuefound in dumpstream; consider repairing the source or using -- bypass-prop-validation while loading.

Svnadmin: E125005: Cannot accept non-LFline endings in 'svn: log' property

 

To fix this problem, you can reedit all comments.

 


To modify the history of commnet, you must configure pre-revprop-change, with the project's default pre-revprop-change.tmpl, copy to a directory, for example, the following/space/rep/allconfig/hooks/pre-revprop-change

 

import os import commands  resps="project1, project2,project3,".split(",")  for res in resps:     os.system("ln -s /space/rep/allconfig/hooks/pre-revprop-change /space/rep/"+res+"/hooks/pre-revprop-change")     output=commands.getoutput("svn info svn://192.168.22.19/"+res)     revesion=output[output.find("Last Changed Rev:")+len("Last Changed Rev:"):output.find("\nLast Changed Date")]     print revesion     #sys.exit(1)      for i in xrange(1,int(revesion.strip())+1):         os.system("svn pget svn:log  --revprop -r "+str(i)+" svn://192.168.22.9/"+res+" > svn.log")         os.system("svn pset svn:log  --revprop -r "+str(i)+" --file svn.log svn://192.168.22.19/"+res)      import osimport commandsresps="project1, project2,project3,".split(",")for res in resps:    os.system("ln -s /space/rep/allconfig/hooks/pre-revprop-change /space/rep/"+res+"/hooks/pre-revprop-change")    output=commands.getoutput("svn info svn://192.168.22.19/"+res)    revesion=output[output.find("Last Changed Rev:")+len("Last Changed Rev:"):output.find("\nLast Changed Date")]    print revesion    #sys.exit(1)    for i in xrange(1,int(revesion.strip())+1):        os.system("svn pget svn:log  --revprop -r "+str(i)+" svn://192.168.22.9/"+res+" > svn.log")        os.system("svn pset svn:log  --revprop -r "+str(i)+" --file svn.log svn://192.168.22.19/"+res)   

Then run the dump command again and load it.

 


 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.