Menu

Commit [r284]  Maximize  Restore  History

Import syntax is now: svn import [PATH] URL. Parent directories in

URL are created as necessary. Testsuite and documentation updated as
well. Patch by David Kimdon <dwhedon@...>. Reviewed and with
some mods by cmpilato.

This completes issues #933 (svn import syntax is confusing; merge 1st
and 3rd arguments) and #735 (import should 'mkdir -p').

* subversion/include/svn_client.h
(svn_client_import): Remove 'new_entry' argument. Trailing entries
in URL that do not exist in the repository are considered to be a
new path to create.

* subversion/libsvn_client/commit.c
(import): Interpret 'new_entry' as a path to be created in the
repository within which the actual import will take place.
(get_ra_editor): Return an error if 'base_url' does not correspond
to a repository path.
(svn_client_import): If the first attempt to open a repository
session fails due to a non-existent URL, back up a directory and
try again. This allows us to create 'new_entry' dynamically
rather than requiring an argument.

* subversion/clients/cmdline/import-cmd.c
(svn_cl__import): 'import' now takes at most two rather than three
arguments. PATH now comes before URL.

* subversion/tests/clients/cmdline/basic_tests.py :
(basic_import): Update single file import test so parent directories
are created to hold the actual import.
(basic_import_executable, basic_import_ignores): Update usage of
'svn import'.

* subversion/tests/clients/cmdline/svntest/actions.py:
(guarantee_greek_repository): Switch the order of the import URL and
on-disk tree args.

* subversion/clients/cmdline/svn.1
* subversion/clients/cmdline/main.c
* doc/book/book/ch03.xml
* doc/book/book/ch05.xml
* doc/book/book/ch06.xml
* doc/book/book/ch08.xml
Update the import syntax descriptions.

cmpilato 2003-06-18

changed /trunk/src/book/book/ch03.xml
changed /trunk/src/book/book/ch05.xml
changed /trunk/src/book/book/ch06.xml
changed /trunk/src/book/book/ch08.xml
/trunk/src/book/book/ch03.xml Diff Switch to side-by-side view
Loading...
/trunk/src/book/book/ch05.xml Diff Switch to side-by-side view
Loading...
/trunk/src/book/book/ch06.xml Diff Switch to side-by-side view
Loading...
/trunk/src/book/book/ch08.xml Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.