RE: RuntimeError: maximum recursion depth exceeded
Jon Foster <[email protected]> Wed, 12 May 2010 13:55:27 +0100
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, > If I run python shrink_test_case.py --help then I get this error: > Traceback (most recent call last): > File "shrink_test_case.py", line 48, in ? > from contrib.rcs_file_filter import WriteRCSFileSink > ImportError: No module named contrib.rcs_file_filter That one's a known bug (fixed on trunk) in shrink_test_case.py. Try: python /full/path/here/its/important/shrink_test_case.py --help Kind regards, Jon ________________________________ From: will soula [mailto:[email protected]] Sent: 12 May 2010 13:15 To: [email protected] Subject: Re: RuntimeError: maximum recursion depth exceeded I cannot get the shrink_test_case.py program to run. If I run shrink_test_case.py --help then I get an error that shrink_test_case.py: command not found. If I run python shrink_test_case.py --help then I get this error: Traceback (most recent call last): File "shrink_test_case.py", line 48, in ? from contrib.rcs_file_filter import WriteRCSFileSink ImportError: No module named contrib.rcs_file_filter Any ideas? Thanks, Will ________________________________ will soula wrote: > I am trying to convert several cvs repos to svn and they have all gone > fine except for one that gets a "RuntimeError: maximum recursion depth > exceeded" error. [...] > > I tried to run the shrink_test_case.py file but I have no clue how to > use it. What goes in the TEST_COMMAND variable? I tried setting it to > the command line I run to get the error, but no dice. You need to run a command that succeeds (exits with a returncode of 0) if the error is still present. Make sure you do this on a copy of your repository, because the copy will be destroyed by this process! Let's call the path to your copy "$CVSREPO". In your case you could write a script file something like (untested): ========== In file test.sh: ========================================= #! /bin/sh cvs2svn [...put your command options here...] $CVSREPO 2>&1 | grep -q 'maximum recursion depth exceeded' ===================================================================== This script runs cvs2svn on $CVSREPO and then checks whether the output of cvs2svn includes the string 'maximum recursion depth exceeded'. If so, then the error that you want to report is obviously still there. Then make the test.sh file executable ("chmod +x test.sh") then run shrink_test_case.py as follows: /some/path/contrib/shrink_test_case.py $CVSREPO /another/path/test.sh When shrink_test_case.sh is done working, $CVSREPO should be much smaller than it started and hopefully something that you can send to the mailing list along with the info requested by Jon Foster. You can run "shrink_test_case.py --help" for a little bit of documentation. Michael ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ********************************************************************** This email and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Cabot Communications Ltd. If you are not the intended recipient of this email and its attachments, you must take no action based upon them, nor must you copy or show them to anyone. Cabot Communications Limited Verona House, Filwood Road, Bristol BS16 3RY, UK +44 (0) 1179584232 Co. Registered in England number 02817269 Please contact the sender if you believe you have received this email in error. ********************************************************************** ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ------------------------------------------------------ http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1667&dsMessageId=2608137 To unsubscribe from this discussion, e-mail: [[email protected]].