You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2013/01/20 14:01:13 UTC
svn commit: r1435832 -
/subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py
Author: rhuijben
Date: Sun Jan 20 13:01:13 2013
New Revision: 1435832
URL: http://svn.apache.org/viewvc?rev=1435832&view=rev
Log:
* subversion/tests/cmdline/svntest/sandbox.py
(simple_add_text): Add helper function.
Modified:
subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py
Modified: subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py?rev=1435832&r1=1435831&r2=1435832&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py Sun Jan 20 13:01:13 2013
@@ -318,6 +318,13 @@ class Sandbox:
# '*' is evaluated on Windows
self.simple_propset('svn:special', 'X', target)
+ def simple_add_text(self, text, *targets):
+ """Create files containing TEXT as TARGETS"""
+ assert len(targets) > 0
+ for target in targets:
+ svntest.main.file_write(self.ospath(target), text, mode='wb')
+ self.simple_add(*targets)
+
def simple_copy(self, source, dest):
"""Copy SOURCE to DEST in the WC.
SOURCE and DEST are relpaths relative to the WC."""