Eirik Bjørsnøs <eirbjo@gmail.com>


Patch
r873159

r873159 | kfogel | 2008-09-15 21:35:55 +0000 (Mon, 15 Sep 2008)

Add new command line switch "--with-no-revprops" to the svn log CLI.
Extend the DAV protocol with a "no-revprops" flag, and update ra_serf
and ra_neon to send this flag if the revprops array is empty.  This
brings the DAV protocol on par with the SVN protocol, and exposes this
functionality to command line users.

Patch by: Eirik Bjørsnøs <eirbjo@gmail.com>
(Only very minor tweaks by me, such as updating the getopt test data.)

* subversion/mod_dav_svn/reports/log.c
  (dav_svn__log_report): Read "no-revprops" and leave an empty array
    of rev-props to fetch.

* subversion/libsvn_ra_serf/log.c
  (svn_ra_serf__get_log): Add "<no-revprops/>" to log report request
    if revprops array is empty.

* subversion/libsvn_ra_neon/log.c
  (svn_ra_neon__get_log): Add "<no-revprops/>" to log report request
    if revprops array is empty.

* subversion/svn/cl.h
  (svn_cl__opt_state_t): Add no_revprops.  Fix existing comment, too.

* subversion/svn/log-cmd.c
  (svn_cl__log): Check for --with-no-revprops only being used in XML mode.
  (svn_cl__log): Create an empty revprops array if no_revprops is set.

* subversion/svn/main.c
  (svn_cl__longopt_t): Add opt_with_no_revprops.
  (svn_cl__options): Add "with-no-revprops" option.
  (svn_cl__cmd_table."log"): Add opt_with_no_revprops.
  (main): Check for opt_with_no_revprops being set.

* notes/webdav-protocol
  (log-report): Add "no-revprops" option.

* subversion/tests/cmdline/getopt_tests_data/svn_help_log_switch_stdout: 
  Adjust for above.