Author: danielsh
Date: Mon Oct 18 05:59:06 2010
New Revision: 1023659

URL: http://svn.apache.org/viewvc?rev=1023659&view=rev
Log:
* tools/dev/wc-format.py:
  (MIN_SINGLE_DB_FORMAT): New macro.
  (get_format): Only use the parent's format if it's a recursive format.

Modified:
    subversion/trunk/tools/dev/wc-format.py

Modified: subversion/trunk/tools/dev/wc-format.py
URL: 
http://svn.apache.org/viewvc/subversion/trunk/tools/dev/wc-format.py?rev=1023659&r1=1023658&r2=1023659&view=diff
==============================================================================
--- subversion/trunk/tools/dev/wc-format.py (original)
+++ subversion/trunk/tools/dev/wc-format.py Mon Oct 18 05:59:06 2010
@@ -4,6 +4,7 @@ import os
 import sqlite3
 import sys
 
+MIN_SINGLE_DB_FORMAT = 19
 
 def get_format(wc_path):
   entries = os.path.join(wc_path, '.svn', 'entries')
@@ -19,7 +20,11 @@ def get_format(wc_path):
   else:
     parent_path = os.path.dirname(os.path.abspath(wc_path))
     if wc_path != parent_path:
-      return get_format(parent_path)
+      formatno = get_format(parent_path)
+      if formatno >= MIN_SINGLE_DB_FORMAT:
+       return formatno
+      else:
+       return 'not under version control'
     else:
       return 'not under version control'
 


Reply via email to