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/08/03 16:13:10 UTC

svn commit: r981893 - /subversion/trunk/subversion/libsvn_wc/status.c

Author: rhuijben
Date: Tue Aug  3 14:13:10 2010
New Revision: 981893

URL: http://svn.apache.org/viewvc?rev=981893&view=rev
Log:
* subversion/libsvn_wc/status.c
  (get_dir_status): In single-db don't use svn_wc__db_node_hidden, if we
    already have status.

Modified:
    subversion/trunk/subversion/libsvn_wc/status.c

Modified: subversion/trunk/subversion/libsvn_wc/status.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/status.c?rev=981893&r1=981892&r2=981893&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/status.c (original)
+++ subversion/trunk/subversion/libsvn_wc/status.c Tue Aug  3 14:13:10 2010
@@ -1288,16 +1288,21 @@ get_dir_status(const struct walk_status_
                                    NULL, NULL, NULL, NULL, NULL, NULL,
                                    wb->db, node_abspath, iterpool, iterpool));
 
+#ifndef SVN_WC__SINGLE_DB
+          /* Hidden looks in the parent stubs, which should not be necessary.
+             Also skip excluded/absent/not-present working nodes, which
+             only have an implied status via their parent. */
+
           SVN_ERR(svn_wc__db_node_hidden(&hidden, wb->db, node_abspath,
                                          iterpool));
 
-          /* Hidden looks in the parent stubs, which should not be necessary
-             later. Also skip excluded/absent/not-present working nodes, which
-             only have an implied status via their parent. */
-          if (!hidden
+          if (hidden)
+            node_status = svn_wc__db_status_not_present;
+#endif
+
+          if (node_status != svn_wc__db_status_not_present
               && node_status != svn_wc__db_status_excluded
-              && node_status != svn_wc__db_status_absent
-              && node_status != svn_wc__db_status_not_present)
+              && node_status != svn_wc__db_status_absent)
             {
               if (depth == svn_depth_files && node_kind == svn_wc__db_kind_dir)
                 continue;



Re: svn commit: r981893 - /subversion/trunk/subversion/libsvn_wc/status.c

Posted by Greg Stein <gs...@gmail.com>.
On Tue, Aug 3, 2010 at 10:13,  <rh...@apache.org> wrote:
> Author: rhuijben
> Date: Tue Aug  3 14:13:10 2010
> New Revision: 981893
>
> URL: http://svn.apache.org/viewvc?rev=981893&view=rev
> Log:
> * subversion/libsvn_wc/status.c
>  (get_dir_status): In single-db don't use svn_wc__db_node_hidden, if we
>    already have status.

This seems like a dangerous disparity. It is exposing too much of
SINGLE_DB outside of wc_db.h.

I would very much encourage finding a way to collapse this under the
wc_db covers before continuing this pattern. Ideally, the only
SINGLE_DB conditions should be *inside* wc_db. If not, then something
is probably wrong in that API.

Cheers,
-g