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

[PATCH] Relative url support for all svn subcommand (that make sense)

From: Troy Curtis Jr <troycurtisjr_at_gmail.com>
Date: 2007-11-16 06:13:29 CET

I have implemented relative url support for every subcommand that makes sense.
Every command that had an existing test set has a new test function to test it
with relative urls. Comments?

[[[
Add repository root relative url support to all the svn client subcommands
(that make sense).

* subversion/include/svn_path.h,
  subversion/libsvn_subr/path.c
  (svn_path_is_relative_url): New function.
  (svn_path_array_has_relative_url): New function.
  (svn_path_resolve_relative_url): New function.
  (svn_path_resolve_relative_url_array): New function.

* subversion/include/svn_wc.h,
  subversion/libsvn_wc/util.c
  (svn_wc_get_absolute_url): New function.
  (svn_wc_get_absolute_url_array): New function.

* subversion/libsvn_client/externals.c
  (resolve_relative_external_url): Put a small note pointing out that there is
  a partial reimplementation of some of the functionality found in
  libsvn_subr/path.c.

* subversion/libsvn_subr/opt.c
  (svn_opt_args_to_target_array2): Do not autoescape or canonicalize relative
  urls so that bare repository root urls ('^/') can make it through.

* subversion/svn/propset-cmd.c,
  subversion/svn/propdel-cmd.c,
  subversion/svn/propedit-cmd.c,
  subversion/svn/propget-cmd.c,
  subversion/svn/proplist-cmd.c,
  subversion/svn/mkdir-cmd.c,
  subversion/svn/move-cmd.c,
  subversion/svn/log-cmd.c,
  subversion/svn/lock-cmd.c,
  subversion/svn/unlock-cmd.c,
  subversion/svn/diff-cmd.c,
  subversion/svn/delete-cmd.c,
  subversion/svn/copy-cmd.c,
  subversion/svn/checkout-cmd.c,
  subversion/svn/cat-cmd.c,
  subversion/svn/list-cmd.c,
  subversion/svn/merge-cmd.c,
  subversion/svn/blame-cmd.c
  (svn_cl__propdel, svn_cl__propedit,
   svn_cl__propget, svn_cl__proplist,
   svn_cl__mkdir, svn_cl__move,
   svn_cl__log, svn_cl__lock,
   svn_cl__unlock, svn_cl__diff,
   svn_cl__delete, svn_cl__copy,
   svn_cl__checkout,svn_cl__cat,
   svn_cl__list, svn_cl__merge,
   svn_cl__blame): Resolve relative urls in targets array.

* subversion/svn/mergeinfo-cmd.c,
  subversion/svn/info-cmd.c
  (svn_cl__mergeinfo,
   svn_cl__info): Resolve relative url in each target.

* subversion/svn/switch-cmd.c
  (svn_cl__switch): Resolve relative url in the switch url.

* subversion/svn/import-cmd.c
  (svn_cl__import): Resolve relative url in import destination url.

* subversion/svn/export-cmd.c
  (svn_cl__export): Resolve relative url if present in 'from'.

* subversion/tests/libsvn_subr/path-test.c
  (test_is_relative_url,
   test_array_has_relative_url,
   test_resolve_relative_url,
   test_resolve_relative_url_array): New path test functions.
  (test_funcs): Add new path test functions to the list of functions to run.

* subversion/tests/cmdline/switch_tests.py,
  subversion/tests/cmdline/prop_tests.py,
  subversion/tests/cmdline/log_tests.py,
  subversion/tests/cmdline/lock_tests.py,
  subversion/tests/cmdline/import_tests.py,
  subversion/tests/cmdline/export_tests.py,
  subversion/tests/cmdline/diff_tests.py,
  subversion/tests/cmdline/copy_tests.py,
  subversion/tests/cmdline/checkout_tests.py,
  subversion/tests/cmdline/cat_tests.py,
  subversion/tests/cmdline/blame_tests.py,
  subversion/tests/cmdline/merge_tests.py
  (switch_with_relative_url,
   url_props_relative_url,
   log_with_relative_urls,
   lock_file_with_relative_url,
   import_to_relative_url,
   export_relative_url,
   diff_relative_url,
   copy_with_relative_urls,
   co_with_relative_url,
   cat_relative_url,
   blame_relative_url,
   merge_with_relative_urls): New test functions.
  (test_list): Add new test functions to the list of tests to run.
]]]

Troy

-- 
Beware of spyware. If you can, use the Firefox browser. - USA Today
Download now at http://getfirefox.com
Registered Linux User #354814 ( http://counter.li.org/)


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

Received on Fri Nov 16 06:13:52 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.