subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@apache.org
Subject svn commit: r931751 - in /subversion/trunk/subversion/libsvn_wc: log.c workqueue.c
Date Thu, 08 Apr 2010 01:45:35 GMT
Author: gstein
Date: Thu Apr  8 01:45:35 2010
New Revision: 931751

URL: http://svn.apache.org/viewvc?rev=931751&view=rev
Log:
Add a bit of debug assistance.

* subversion/libsvn_wc/log.c:
  (DEBUG_LOG): new define (commented-out)
  (start_handler): add debug output when DEBUG_LOG is defined

* subversion/libsvn_wc/workqueue.c:
  (DEBUG_WORK_QUEUE): new define (commented-out)
  (svn_wc__wq_run): add debug output when DEBUG_LOG is defined

Modified:
    subversion/trunk/subversion/libsvn_wc/log.c
    subversion/trunk/subversion/libsvn_wc/workqueue.c

Modified: subversion/trunk/subversion/libsvn_wc/log.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/log.c?rev=931751&r1=931750&r2=931751&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/log.c (original)
+++ subversion/trunk/subversion/libsvn_wc/log.c Thu Apr  8 01:45:35 2010
@@ -142,6 +142,9 @@ struct log_runner
 #define LOG_START "<wc-log xmlns=\"http://subversion.tigris.org/xmlns\">\n"
 #define LOG_END "</wc-log>\n"
 
+/* For log debugging. Generates output about its operation.  */
+/* #define DEBUG_LOG */
+
 
 
 /*** The XML handlers. ***/
@@ -641,6 +644,10 @@ start_handler(void *userData, const char
       return;
     }
 
+#ifdef DEBUG_LOG
+  SVN_DBG(("start_handler: name='%s'\n", eltname));
+#endif
+
   /* Dispatch. */
   if (strcmp(eltname, SVN_WC__LOG_MODIFY_ENTRY) == 0) {
     err = log_do_modify_entry(loggy, name, atts);

Modified: subversion/trunk/subversion/libsvn_wc/workqueue.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/workqueue.c?rev=931751&r1=931750&r2=931751&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/workqueue.c (original)
+++ subversion/trunk/subversion/libsvn_wc/workqueue.c Thu Apr  8 01:45:35 2010
@@ -63,6 +63,10 @@
 #define OP_FILE_REMOVE "file-remove"
 
 
+/* For work queue debugging. Generates output about its operation.  */
+/* #define DEBUG_WORK_QUEUE */
+
+
 struct work_item_dispatch {
   const char *name;
   svn_error_t *(*func)(svn_wc__db_t *db,
@@ -2179,6 +2183,10 @@ svn_wc__wq_run(svn_wc__db_t *db,
 {
   apr_pool_t *iterpool = svn_pool_create(scratch_pool);
 
+#ifdef DEBUG_WORK_QUEUE
+  SVN_DBG(("wq_run: wri='%s'\n", wri_abspath));
+#endif
+
   while (TRUE)
     {
       svn_wc__db_kind_t kind;
@@ -2211,6 +2219,10 @@ svn_wc__wq_run(svn_wc__db_t *db,
         {
           if (svn_skel__matches_atom(work_item->children, scan->name))
             {
+
+#ifdef DEBUG_WORK_QUEUE
+              SVN_DBG(("wq_run:   operation='%s'\n", scan->name));
+#endif
               SVN_ERR((*scan->func)(db, work_item,
                                     cancel_func, cancel_baton,
                                     iterpool));



Mime
View raw message