Senthil Kumaran S wrote: > Hi, > > Bhuvaneswaran A wrote: > >> Did we discuss about correcting old revisions pointing to svn.collab.net >> repository referenced in log messages? Like this one: >> $ svn log -r r880575 >> > > This is my first attempt at ctypes-python bindings for subversion :) The > attached script will do the above. I plan to run this script on -r 836401:HEAD > over https://svn.apache.org/repos/asf/subversion/trunk around "15:30:00 > Saturday November 28, 2009 in UTC" > > Already ran a test on r880575 and the script did what it was supposed to do. > > Thank You. >
Here's a hint for compliance with the Python coding standards: --- log_revnum_change_asf.py 2009-11-27 11:21:44.930709595 +0100 +++ log_revnum_change_asf.py 2009-11-27 11:22:59.490693784 +0100 @@ -16,19 +16,20 @@ # specific language governing permissions and limitations # under the License. -from csvn.repos import * -from csvn.auth import User -import csvn.core -from optparse import OptionParser -import re - -usage = """python log_revnum_change_asf.py [OPTION]... URL +""" +python log_revnum_change_asf.py [OPTION]... URL Change the revision numbers relatively in the log messages of new ASF subversion repository. """ -parser = OptionParser(usage=usage) +from csvn.repos import * *from csvn.auth import User +import csvn.core +from optparse import OptionParser +import re + +parser = OptionParser(usage=__doc__) parser.add_option("-u", "", dest="username", help="commit the changes as USERNAME") parser.add_option("-p", "", dest="password",