RE: RuntimeError: maximum recursion depth exceeded

will soula <[email protected]> Fri, 14 May 2010 15:39:28 -0500
Newsgroups gmane.comp.version-control.subversion.cvs2svn.devel
Message-ID <93B3B6122B906D44BC7E8B8CEFB0DBBB2E4222CF99@SGP-EXCHANGE.pointserve.com>
I have successfully run the shrink_test_case.py script and apparently the folder name is the cause of the error.  shrink_test_case went through and deleted everything from the repo.  I now have a folder called "ServiceLogicWFM-backup" and there is nothing inside the folder.  I ran pass 11 against that folder after shrink_test_case had deleted everything in it and I still get the same error.  I have run the command ls against the folder to verify nothing was in there and then copied to a windows computer and verified there is nothing in it.  I have attached my options file in case that has something to do with it.

Thanks,
Will

-----Original Message-----
From: Michael Haggerty [mailto:[email protected]] 
Sent: Thursday, May 13, 2010 11:30 PM
To: Soula, William
Cc: [email protected]
Subject: Re: RuntimeError: maximum recursion depth exceeded

will soula wrote:
> I don't know what the error I sent earlier was.  Possibly it was from
> running out of disk space.  I moved my cvs2svn-2.3.0 folder to a drive
> that is much larger and got a different error.
> 
> stderr:
> ERROR: [Errno 39] Directory not empty: 'shrink_test_case-tmp' (ignored)
> Traceback (most recent call last):
>   File "/data/cvs2svn-2.3.0/contrib/shrink_test_case.py", line 746, in ?
>     main()
>   File "/data/cvs2svn-2.3.0/contrib/shrink_test_case.py", line 735, in main
>     shrink_repository(test_command, cvsrepo)
>   File "/data/cvs2svn-2.3.0/contrib/shrink_test_case.py", line 651, in
> shrink_repository
>     try_modification_combinations(
>   File "/data/cvs2svn-2.3.0/contrib/shrink_test_case.py", line 624, in
> try_modification_combinations
>     success = mod.try_mod(test_command)
>   File "/data/cvs2svn-2.3.0/contrib/shrink_test_case.py", line 127, in
> try_mod
>     self.modify()
>   File "/data/cvs2svn-2.3.0/contrib/shrink_test_case.py", line 308, in
> modify
>     shutil.move(self.path, self.tempfile)
>   File "/usr/lib/python2.4/shutil.py", line 190, in move
>     copytree(src, dst, symlinks=True)
>   File "/usr/lib/python2.4/shutil.py", line 111, in copytree
>     os.mkdir(dst)
> OSError: [Errno 17] File exists: 'shrink_test_case-tmp/f0000001.tmp'
> 
> stdout:
> Testing with the original repository.
> The bug is confirmed to exist in the initial repository.
> Testing with the following modifications:
>   Deleted directory '/data/cvsrepos/ServiceLogicWFM-backup'

It looks like the temporary directory that the script wants to use,
shrink_test_case-tmp, already exists and contains a temporary file from
a previous attempt to use shrink_test_case.py.  This means that the
previous (failed) attempt has probably changed the copy of your
repository in a way that might not be correct.  So please remove the
shrink_test_case-tmp directory and start shrink_test_case.py again *with
a fresh copy of your repository*.

Technical note: shrink_test_case.py does the following:

while have_an_idea_for_a_change():
    temporarily_make_change_to_repository()
    if bug_still_present():
        make_change_permanent()
    else:
        undo_change()

So the previous run probably failed between
temporarily_make_change_to_repository() and deciding whether the change
should be made permanent or undone.

Michael

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

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

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

To unsubscribe from this discussion, e-mail: [[email protected]].
cvs2svn-ServiceLogicWFM-backup.options (application/octet-stream, 29 KB) - not displayed