Return-Path: X-Original-To: apmail-subversion-commits-archive@minotaur.apache.org Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 74E9AE29B for ; Mon, 11 Feb 2013 20:54:40 +0000 (UTC) Received: (qmail 78345 invoked by uid 500); 11 Feb 2013 20:54:40 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 78315 invoked by uid 500); 11 Feb 2013 20:54:40 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 78308 invoked by uid 99); 11 Feb 2013 20:54:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 20:54:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 20:54:39 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 6EAE4238896F; Mon, 11 Feb 2013 20:54:20 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1444959 - /subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py Date: Mon, 11 Feb 2013 20:54:20 -0000 To: commits@subversion.apache.org From: rhuijben@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130211205420.6EAE4238896F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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;