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 2012/11/08 14:40:02 UTC

svn commit: r1407075 - /subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py

Author: rhuijben
Date: Thu Nov  8 13:40:01 2012
New Revision: 1407075

URL: http://svn.apache.org/viewvc?rev=1407075&view=rev
Log:
* subversion/tests/cmdline/svntest/sandbox.py
  (simple_add_symlink): Fix behavior on posix, and use the same representation
    of symlinks as Subversion uses.

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=1407075&r1=1407074&r2=1407075&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py Thu Nov  8 13:40:01 2012
@@ -310,9 +310,9 @@ class Sandbox:
   def simple_add_symlink(self, dest, target):
     """Create a symlink TARGET pointing to DEST and add it to subversion"""
     if svntest.main.is_posix_os():
-      symlink(dest, self.ospath(target))
+      os.symlink(dest, self.ospath(target))
     else:
-      svntest.main.file_write(self.ospath(target), "LINK %s" % dest)
+      svntest.main.file_write(self.ospath(target), "link %s" % dest)
     self.simple_add(target)
     if not svntest.main.is_posix_os():
       # '*' is evaluated on Windows