You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by gs...@apache.org on 2010/03/14 10:39:58 UTC
svn commit: r922802 -
/subversion/trunk/subversion/tests/cmdline/export_tests.py
Author: gstein
Date: Sun Mar 14 09:39:57 2010
New Revision: 922802
URL: http://svn.apache.org/viewvc?rev=922802&view=rev
Log:
Remove extraneous StateItem / SVNTreeNode conversions.
* subversion/tests/cmdline/export_tests.py:
(export_to_explicit_cwd): rather than create StateItems, convert those
to tuples, construct an old-style tree, then convert it into a
new-style State... we just create the StateItems and flow them into a
State with no wacky conversions.
Modified:
subversion/trunk/subversion/tests/cmdline/export_tests.py
Modified: subversion/trunk/subversion/tests/cmdline/export_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/export_tests.py?rev=922802&r1=922801&r2=922802&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/export_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/export_tests.py Sun Mar 14 09:39:57 2010
@@ -409,12 +409,12 @@ def export_to_explicit_cwd(sbox):
sbox.build(create_wc = False, read_only = True)
svntest.main.safe_rmtree(sbox.wc_dir)
- expected_output = svntest.tree.build_generic_tree([
- Item(status='A ').as_node_tuple('iota'),
- ]).as_state()
- expected_disk = svntest.tree.build_generic_tree([
- Item(contents="This is the file 'iota'.\n").as_node_tuple('iota'),
- ]).as_state()
+ expected_output = svntest.wc.State('', {
+ 'iota': Item(status='A '),
+ })
+ expected_disk = svntest.wc.State('', {
+ 'iota': Item(contents="This is the file 'iota'.\n"),
+ })
os.mkdir(sbox.wc_dir)
os.chdir(sbox.wc_dir)