subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1435832 - /subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py
Date Sun, 20 Jan 2013 13:01:13 GMT
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."""



Mime
View raw message