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

Re: Catching dangling transactions

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-10-12 23:54:06 CEST

Philip Martin wrote:
> I've got a regression test failure, but it appears to be nothing to do
> with my change. It's in a test you added in r7351:
> $ ~/sw/subversion/svn/subversion/tests/clients/cmdline/copy_tests.py 20
> /home/pm/sw/subversion/svn/subversion/tests/clients/cmdline/copy_tests.py:1191: SyntaxWarning: local name 'wc_dir' in 'revision_kinds_local_source' shadows use of 'wc_dir' as global in nested scope 'cp_test'
> def revision_kinds_local_source(sbox):
> File "/home/pm/sw/subversion/svn/subversion/tests/clients/cmdline/copy_tests.py", line 1220, in cp_test
> dst_path = os.path.join(wc_dir, dst)
> NameError: global name 'wc_dir' is not defined
> FAIL: copy_tests.py 20: revision-kind keywords with non-URL source

Sorry about that. I've changed it to not use a nested scope. (A quick fix would have been to put "from __future__ import nested_scopes" at the beginning of the file.)

Fixed in r7391, I hope.

- Julian

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Oct 12 23:53:30 2003

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.