r843820 | sussman | 2002-11-12 04:00:43 +0000 (Tue, 12 Nov 2002)
The net effect of this change is to allow ignored files to be
distinguished from unversioned files when svn_wc_status is called with
the no_ignore flag.
Ignored files have their text_status set to svn_wc_status_none, and
other unversioned files have a text_status of
svn_wc_status_unversioned. This is the behavior described in
svn_wc.h. Previously, all unversioned files had their text_status set
to svn_wc_status_unversioned, regardless of whether or not they
matched an ignore pattern.
Patch by: Jon Trowbridge <trow@ximian.com>
Review by: Karl Fogel <kfogel@collab.net>
me
* subversion/libsvn_wc/status.c
(assemble_status): Added a boolean 'is_ignored' argument. If it is
true, items with no corresponding entry have their text status
set to svn_wc_status_none instead of svn_wc_status_unversioned.
(add_status_structure): Added a boolean 'is_ignored' argument,
which is propagated to calls to assemble_status.
(add_unversioned_items): Added a boolean 'no_ignore' argument. If
it is set, we don't ignore any unversioned items. Otherwise we
skip the items that match an ignore pattern.
(svn_wc_status): Call assemble_status with is_ignored=false.
(svn_dir_status): Propagate the no_ignore flag to the call to
add_unversioned_items. Call assemble_status with is_ignored=false.
(svn_dir_status): Propagate the no_ignore flag to the call to
add_unversioned_items. Call assemble_status with is_ignored=false.
(svn_wc_statuses): Call assemble_status with is_ignored=false.