Re: RuntimeError: maximum recursion depth exceeded
Michael Haggerty <[email protected]> Fri, 14 May 2010 06:30:19 +0200
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.devel |
|---|---|
| Message-ID | <[email protected]> |
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]].