subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r991662 - /subversion/trunk/subversion/tests/cmdline/svntest/wc.py
Date Wed, 01 Sep 2010 19:18:34 GMT
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:



Mime
View raw message