Partial patch for Issue #1776 to make parent directories. The code changes
to introduce a new cmd line option - '-p|--parents', to make parent
directories in the working copy, and the related tests in the test suite
are from Stephen Oberholtzer. I am including it here to make it easier to
review the patch. My changes and test are for directly creating parent
directories in the repository.
Changed to defer to svn_client_mkdir2.
Used by svn_client_mkdir2 to create and add directories.
(svn_client_mkdir2): New, from svn_client_mkdir.
Changed to call svn_client_mkdir2, passing in
Added 'parents' member.
Added 'parents' ('p') option.
Added 'p' option to "mkdir" command.
Added case for 'p'.
Tests 'svn mkdir foo/bar' with no foo,
Tests 'svn mkdir -p foo/bar' with no foo,
expects 'foo' and 'bar' to both be added.
Tests 'svn mkdir foo foo/bar', like
basic_mkdir_url but for the WC.
(test_list): Inserted the three previously
mention tests after the basic_mkdir_urls
(mkdir_urls): Added boolean parameter - 'make_parents'to determine if
parent directories should be created directly in the repository.
'mkdir_urls' calls svn_client__url_paths to find the section of the
url that exists and and the new path to be created. A common url and
a list of targets are also determined to drive the delta path driver.
(svn_client_mkdir2): Call mkdir_urls with new make_parents parameter.
(svn_client__url_paths): New function to find section of url that exists
and the path to be created; called by mkdir_urls. Opens ra session to user
specified url, and finds the existing section of the url and the path to
(basic_mkdir_url_p): New test to check making a parent directory
directly in the repository.
(test_list): Added 'basic_mkdir_url_p' to the list of tests.
Received on Sun Mar 13 19:00:10 2005
To unsubscribe, e-mail: email@example.com
For additional commands, e-mail: firstname.lastname@example.org