[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] remove svn_wc_entry_t from export.c

From: Dave Brown <dave.brown_at_wandisco.com>
Date: Fri, 25 Sep 2009 11:22:25 -0700

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.


Received on 2009-09-25 20:23:14 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.