Re: RuntimeError: maximum recursion depth exceeded

will soula <[email protected]> Wed, 12 May 2010 07:14:55 -0500
Newsgroups gmane.comp.version-control.subversion.cvs2svn.devel
Message-ID <93B3B6122B906D44BC7E8B8CEFB0DBBB2E4222CF8D@SGP-EXCHANGE.pointserve.com>
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

------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1667&dsMessageId=2608123

To unsubscribe from this discussion, e-mail: [[email protected]].