You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2022/02/11 14:12:40 UTC

svn commit: r1897974 - /subversion/branches/pristines-on-demand-on-mwf/subversion/libsvn_wc/wc_db.c

Author: julianfoad
Date: Fri Feb 11 14:12:39 2022
New Revision: 1897974

URL: http://svn.apache.org/viewvc?rev=1897974&view=rev
Log:
On the 'pristines-on-demand-on-mwf' branch: remove debug code.

* subversion/libsvn_wc/wc_db.c
  Remove debug code accidentally committed in r1897968.

Modified:
    subversion/branches/pristines-on-demand-on-mwf/subversion/libsvn_wc/wc_db.c

Modified: subversion/branches/pristines-on-demand-on-mwf/subversion/libsvn_wc/wc_db.c
URL: http://svn.apache.org/viewvc/subversion/branches/pristines-on-demand-on-mwf/subversion/libsvn_wc/wc_db.c?rev=1897974&r1=1897973&r2=1897974&view=diff
==============================================================================
--- subversion/branches/pristines-on-demand-on-mwf/subversion/libsvn_wc/wc_db.c (original)
+++ subversion/branches/pristines-on-demand-on-mwf/subversion/libsvn_wc/wc_db.c Fri Feb 11 14:12:39 2022
@@ -1506,13 +1506,6 @@ svn_wc__db_init(svn_wc__db_t *db,
                         FALSE /* auto-upgrade */,
                         db->state_pool, scratch_pool));
 
-#define FORMAT_EXPECTED 32
-  if (wcroot->format != FORMAT_EXPECTED)
-    {
-      SVN_DBG(("### format is %d; expected %d", wcroot->format, FORMAT_EXPECTED));
-      SVN_ERR_MALFUNCTION_NO_RETURN();
-    }
-
   /* Any previously cached children may now have a new WCROOT, most likely that
      of the new WCROOT, but there might be descendant directories that are their
      own working copy, in which case setting WCROOT to our new WCROOT might
@@ -13469,12 +13462,6 @@ svn_wc__db_upgrade_begin(svn_sqlite__db_
                                        FALSE /* auto-upgrade */,
                                        wc_db->state_pool, scratch_pool));
 
-  if (wcroot->format != FORMAT_EXPECTED)
-    {
-      SVN_DBG(("### format is %d; expected %d", wcroot->format, FORMAT_EXPECTED));
-      SVN_ERR_MALFUNCTION_NO_RETURN();
-    }
-
   /* The WCROOT is complete. Stash it into DB.  */
   svn_hash_sets(wc_db->dir_data, wcroot->abspath, wcroot);