Charles Duffy <charles@dyfis.net>


Patch
r868932

r868932 | cmpilato | 2008-01-10 21:10:21 +0000 (Thu, 10 Jan 2008)

Add 'propset' and 'propdel' operations to svnmucc.

* contrib/client-side/svnmucc/svnmucc.c
  (action_code_t): Add ACTION_PROPSET and ACTION_PROPDEL.
  (struct operation): Add OP_PROPSET (property-only file changes) to
    enum operation; add apr_table_t 'props'; update comment string for kind.
  (struct driver_state): New, used to pass state to the set_props() iterator.
  (set_props): Implement apr_table_do()-style iterator to call
    the editor's change_dir_prop() or change_file_prop() as appropriate.
  (drive): Add driver_state instance; populate and call apr_table_do()
    as appropriate.
  (get_operation): Initialize props table for each operation.
  (build): Add 'prop_name' and 'prop_value' arguments; search for
    original file on property operations as for deletes; modify
    operation structures to record intended property changes.
  (struct action): Add 'prop_name' and 'prop_value' elements.
  (execute): Update calls to build(); add support for ACTION_PROPSET
    and ACTION_PROPDEL.
  (usage): Add help text for 'propset' and 'propdel' commands.
  (main): Parse property-related command line options and build
    actions appropriately.

* contrib/client-side/svnmucc/svnmucc-test.py 
  (main): Add test cases for new operations.

Patch by: Charles Duffy <charles@dyfis.net>
(Tweaked by me.)