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 2010/09/01 21:18:34 UTC

svn commit: r991662 - /subversion/trunk/subversion/tests/cmdline/svntest/wc.py

Author: rhuijben
Date: Wed Sep  1 19:18:33 2010
New Revision: 991662

URL: http://svn.apache.org/viewvc?rev=991662&view=rev
Log:
* subversion/tests/cmdline/svntest/wc.py
  (text_base_path): Verify if wc.db exists, to make sure we don't create
    a new per directory wc.db. This fixes a few upgrade tests on Windows.

Modified:
    subversion/trunk/subversion/tests/cmdline/svntest/wc.py

Modified: subversion/trunk/subversion/tests/cmdline/svntest/wc.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svntest/wc.py?rev=991662&r1=991661&r2=991662&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svntest/wc.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svntest/wc.py Wed Sep  1 19:18:33 2010
@@ -825,8 +825,9 @@ def text_base_path(file_path):
   while True:
     db_path = os.path.join(root_path, dot_svn, 'wc.db')
     try:
-      db = svntest.sqlite3.connect(db_path)
-      break
+      if os.path.exists(db_path):
+        db = svntest.sqlite3.connect(db_path)
+        break
     except: pass
     head, tail = os.path.split(root_path)
     if head == root_path: