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/02/11 21:54:20 UTC

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

Author: rhuijben
Date: Mon Feb 11 20:54:20 2013
New Revision: 1444959

URL: http://svn.apache.org/r1444959
Log:
* subversion/tests/cmdline/svntest/sandbox.py
  (path): Add new function, like sbox.ospath() but always using '/' separators.

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=1444959&r1=1444958&r2=1444959&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py Mon Feb 11 20:54:20 2013
@@ -191,6 +191,12 @@ class Sandbox:
        path WC_DIR if supplied."""
     return [self.ospath(rp, wc_dir) for rp in relpaths]
 
+  def path(self, relpath, wc_dir=None):
+    """Return RELPATH converted to an path relative to the WC dir
+       of this sbox, or relative to WC_DIR if supplied, but always
+       using '/' as directory separator."""
+    return self.ospath(relpath, wc_dir=wc_dir).replace(os.path.sep, '/')
+
   def redirected_root_url(self, temporary=False):
     """If TEMPORARY is set, return the URL which should be configured
        to temporarily redirect to the root of this repository;