[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r19348 - in trunk/subversion: libsvn_wc tests/cmdline

From: Ivan Zhakov <chemodax_at_gmail.com>
Date: 2006-04-14 13:30:02 CEST

On 4/13/06, rooneg@tigris.org <rooneg@tigris.org> wrote:
> Author: rooneg
> Date: Thu Apr 13 12:25:02 2006
> New Revision: 19348
>
> Modified:
> trunk/subversion/libsvn_wc/status.c
> trunk/subversion/tests/cmdline/stat_tests.py
>
> Log:
> Fix a crash that occurs when running 'svn status -u' with a missing
> subdirectory.
>
> Found by: Fabian Cenedese <Cenedese@indel.ch>
>
> * subversion/libsvn_wc/status.c
> (find_dir_url): Handle the case where an entry's url is NULL, and
> add a comment describing how this can happen.
>
> * subversion/tests/cmdline/stat_tests.py
> Import shutil.
> (status_dash_u_missing_dir): New test for this problem.
> (test_list): Add new test.
>
>
Hi,
It seems your fix doesn't work on Windows:
CMD: svnadmin.exe "create" "svn-test-work\repositories\stat_tests-19"
"--bdb-txn-nosync" "--fs-type=fsfs" <TIME = 0.079000>
CMD: svnadmin.exe dump "svn-test-work\local_tmp\repos" | svnadmin.exe
load "svn-test-work\repositories\stat_tests-19" <TIME = 0.015000>
CMD: svn.exe "co" "--username" "jrandom" "--password" "rayjandom"
"file:///M:/tests-local/subversion/tests/cmdline/svn-test-work/repositories/stat_tests-19"
"svn-test-work\working_copies\stat_tests-19" "--config-dir"
"M:\tests-local\subversion\tests\cmdline\svn-test-work\local_tmp\config"
<TIME = 0.594000>
CMD: svn.exe "status" "svn-test-work\repositories\stat_tests-19"
"svn-test-work\repositories\stat_tests-19" "--config-dir"
"M:\tests-local\subversion\tests\cmdline\svn-test-work\local_tmp\config"
<TIME = 0.047000>
PASS: stat_tests.py 19: status on unversioned dir (issue 2030)
CLEANUP: svn-test-work\working_copies\stat_tests-19
CLEANUP: svn-test-work\repositories\stat_tests-19
CMD: svnadmin.exe "create" "svn-test-work\repositories\stat_tests-20"
"--bdb-txn-nosync" "--fs-type=fsfs" <TIME = 0.047000>
CMD: svnadmin.exe dump "svn-test-work\local_tmp\repos" | svnadmin.exe
load "svn-test-work\repositories\stat_tests-20" <TIME = 0.000000>
CMD: svn.exe "co" "--username" "jrandom" "--password" "rayjandom"
"file:///M:/tests-local/subversion/tests/cmdline/svn-test-work/repositories/stat_tests-20"
"svn-test-work\working_copies\stat_tests-20" "--config-dir"
"M:\tests-local\subversion\tests\cmdline\svn-test-work\local_tmp\config"
<TIME = 0.578000>
UNEXPECTED EXCEPTION:
Traceback (most recent call last):
  File "C:\svnbuild\src-trunk\subversion\tests\cmdline\svntest\main.py",
line 671, in run
    rc = self.pred.run(args)
  File "C:\svnbuild\src-trunk\subversion\tests\cmdline\svntest\testcase.py",
line 104, in run
    return apply(self.func, args)
  File "C:\svnbuild\src-trunk\subversion/tests/cmdline/stat_tests.py",
line 854, in status_dash_u_missing_dir
    shutil.rmtree(a_d_g)
  File "C:\Python24\lib\shutil.py", line 163, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "C:\Python24\lib\shutil.py", line 168, in rmtree
    onerror(os.remove, fullname, sys.exc_info())
  File "C:\Python24\lib\shutil.py", line 166, in rmtree
    os.remove(fullname)
OSError: [Errno 13] Permission denied:
'svn-test-work\\working_copies\\stat_tests-20\\A\\D\\G\\.svn\\entries'
FAIL: stat_tests.py 20: status on missing directory
END: stat_tests.py

--
Ivan Zhakov
Received on Fri Apr 14 13:30:38 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.