Re: RuntimeError: maximum recursion depth exceeded
Michael Haggerty <[email protected]> Wed, 12 May 2010 04:12:22 +0200
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.devel |
|---|---|
| Message-ID | <[email protected]> |
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=2607907
To unsubscribe from this discussion, e-mail: [[email protected]].