Checkout
sussman
committed
on 05 Apr 02

Make the path@rev syntax available to any subcommand that wants it.
Right now, the only subcommands that use it are diff and merge.

[ Folk… Show more

Make the path@rev syntax available to any subcommand that wants it.

Right now, the only subcommands that use it are diff and merge.

[ Folks who are discussing the correctness of this "@" syntax: feel

 free to toy with alteratives, I'm pretty indifferent.  The function

 doing the parsing is cmdilne/util.c:parse_path ]

* merge-cmd.c (svn_cl__merge):  simplify logic.

 (parse_path): remove static func from here....  

* util.c (parse_path): re-add here, as a helper args_to_target_array.

 (svn_cl__args_to_target_array): new boolean flag.  this routine,

 which is called by every svn_cl__foo_subcommand, now has the

 optional ability to strip @rev syntax from paths and write the

 values into the opt_state structure.

* cl.h (svn_cl__args_to_target_array): take a new boolean flag.

* svn_error_codes.h (SVN_ERR_CL_INSUFFICIENT_ARGS):  new error code.

* diff-cmd.c (svn_cl__diff): pass TRUE to args_to_target_array's

 new 'extract_revisions' flag.

* delete-cmd.c (svn_cl__delete): pass FALSE to args_to_target_array's

 new 'extract_revisions' flag.

* switch-cmd.c (svn_cl__switch): same.

* add-cmd.c (svn_cl__add): same.

* propset-cmd.c (svn_cl__propset): same.

* help-cmd.c (svn_cl__help): same.

* commit-cmd.c (svn_cl__commit): same.

* cleanup-cmd.c (svn_cl__cleanup): same.

* update-cmd.c (svn_cl__update): same.

* log-cmd.c (svn_cl__log): same.

* propget-cmd.c (svn_cl__propget): same.

* copy-cmd.c (svn_cl__copy): same.

* revert-cmd.c (svn_cl__revert): same.

* move-cmd.c (svn_cl__move): same.

* mkdir-cmd.c (svn_cl__mkdir): same.

* propdel-cmd.c (svn_cl__propdel): same.

* propedit-cmd.c (svn_cl__propedit): same.

* status-cmd.c (svn_cl__status): same.

* resolve-cmd.c (svn_cl__resolve): same.

* proplist-cmd.c (svn_cl__proplist): same.

* import-cmd.c (svn_cl__import): same.

Show less