You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2022/03/18 02:59:51 UTC

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

Author: danielsh
Date: Fri Mar 18 02:59:51 2022
New Revision: 1899019

URL: http://svn.apache.org/viewvc?rev=1899019&view=rev
Log:
Attempt to fix upgrade_tests.py on Windows after (presumably) r1899014.

* subversion/tests/cmdline/svntest/sandbox.py
  (Sandbox.read_wc_formats): Account for platform-dependent path 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=1899019&r1=1899018&r2=1899019&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py Fri Mar 18 02:59:51 2022
@@ -611,8 +611,10 @@ class Sandbox:
     return found_format
 
   def read_wc_formats(self):
-    """Return a dictionary mapping working copy root paths relative to wc_dir
-    to their format numbers.
+    """Return a dictionary mapping working copy root relpaths to their
+    format numbers.
+
+    The relpaths are relative to self.wc_dir.
 
     The return value will always contain an empty string key.
     """
@@ -625,7 +627,7 @@ class Sandbox:
         # exists and .svn/wc.db doesn't.
         if os.path.exists(wc_db_path):
           ret[root[len(self.wc_dir)+1:]] = self._wc_format_of(wc_db_path)
-    return ret
+    return { k.replace(os.sep, '/') : ret[k] for k in ret }
 
 def is_url(target):
   return (target.startswith('^/')