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

Re: [PATCH] mucc setprop, delprop subcommands (revised for style; log message included)

From: Charles Duffy <cduffy_at_spamcop.net>
Date: 2007-02-18 01:47:33 CET

Per subject -- this version has been revised to more closely conform to
the appropriate code style, and adds a log message. [I wasn't sure where
to go on verbosity, and so decided to err on the side of excess; let me
know if this was inappropriate].

[[
Add setprop and delprop subcommands to mucc

* contrib/client-side/mucc.c
  (struct operation): add OP_SETPROP (property-only file changes) to enum
   operation; add apr_table_t propes; update comment string for kind
  (struct driver_state): initial creation; used to pass state to the set_props
   iterator.
  (set_props): implement apr_table_do-style iterator to call change_dir_prop/
   change_file_prop as appropriate.
  (drive): add driver_state instance; populate and call apr_table_do(set_props,
   &state, ...) as appropriate
  (get_operation): initialize props table for each operation
  (build): add prop_name and prop_value arguments; search for original file on
   prop* operations as for deletes; modify operation structures to record
   intended property changes
  (struct action): add new entry ACTION_PROP to action enum; add prop_name and
   prop_value elements to action struct
  (execute): change all build calls to use the new method signature; add
   support for handling ACTION_PROP
  (usage): add help text for setprop and delprop commands
  (main): parse property-related command line options and build actions
          appropriately.

Patch by: charles@dyfis.net
]]

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Sun Feb 18 01:48:15 2007

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.