The added/deleted accessors are not perfect, they don't go through
all the logic that entries.c does to populate entry->schedule. I
kept wanting to look at svn_wc__de_status_t values. But the accessors
suffice for export.c use.
[[[
Remove wc_entry_t usage from export.c. Make a couple of accessor api's
in svn_wc_private.h to fetch from wc_db the equivalent of the old test
entry->schedule == (schdule_add,schedule_delete).
* include/private/svn_wc_private.h:
(svn_wc__node_is_delete, svn_wc__node_is_added): New functions
* libsvn_wc/node.c:
(svn_wc__node_is_delete, svn_wc__node_is_added): New functions
* libsvn_client/export.c:
(skip_export_node): add static helper function to decide if a node
should be exported or not
(copy_one_versioned_file,copy_versioned_files): Remove wc_entry_t
usage. Use svn_wc_private.h api's to fetch specific information:
url,depth,added or deleted status.
]]]
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2400350
Received on 2009-09-25 20:23:14 CEST