On Thu, Jul 26, 2018 at 03:46:00PM +0200, Stefan Sperling wrote: > Note that libsvn_client does not expose this functionality yet. > So the command line client would probably need a new wrapper API > at the client library layer as well in order to expose this feature > to the command line user. But this should be rather straightforward.
Sorry, I got confused between svn_client_revert and svn_wc_revert here. The client layer already exposes this, so we could start directly in svn_cl__revert() (subversion/svn/revert-cmd.c) and make the meta-data only parameter configurable via a new flag in opt_state: err = svn_client_revert4(targets, opt_state->depth, opt_state->changelists, FALSE /* clear_changelists */, FALSE /* metadata_only */, TRUE /*added_keep_local*/, ctx, scratch_pool);