http://subversion.tigris.org/issues/show_bug.cgi?id=2931
User kfogel changed the following:
What ld value
|New value
============================================================
====================
Status|NEW |STARTED
------------------------------------------------------------
--------------------
------- Additional comments from kfogel tigris.org Sun Sep 16 00:01:01 -0700 2007 -------
Got patch, running it through 'make check' right now:
[[[
Fix issue #2931: 'svn add --depth=files newdir' warns if
subdir present.
* subversion/libsvn_client/add.c
(add_dir_recursive): Don't try to add a directory thinking
it's a file.
This follows up to r26607.
* subversion/tests/cmdline/depth_tests.py
(add_tree_at_depth_files): New test.
(test_list): Run it.
]]]
Index: subversion/libsvn_client/add.c
============================================================
=======
--- subversion/libsvn_client/add.c (revision 26618)
+++ subversion/libsvn_client/add.c (working copy)
 -390,7
+390,9 
SVN_ERR(add_dir_recursive(fullpath, dir_access,
depth_below_here,
force, no_ignore, ctx,
subpool));
}
- else if (this_entry.filetype != APR_UNKFILE
&& depth >= svn_depth_files)
+ else if (this_entry.filetype != APR_UNKFILE
+ && this_entry.filetype != APR_DIR
+ && depth >= svn_depth_files)
{
err = add_file(fullpath, ctx, dir_access,
subpool);
if (err && err->apr_err ==
SVN_ERR_ENTRY_EXISTS && force)
Index: subversion/tests/cmdline/depth_tests.py
============================================================
=======
--- subversion/tests/cmdline/depth_tests.py (revision
26618)
+++ subversion/tests/cmdline/depth_tests.py (working copy)
 -1110,6
+1110,17 
svntest.actions.run_and_verify_svn(None, "Depth:
empty", [], "info",
other_I_path)
+def add_tree_at_depth_files(sbox):
+ "add multi-subdir tree with --depth=empty" #
For issue #2931
+ sbox.build()
+ wc_dir = sbox.wc_dir
+ new1_path = os.path.join(wc_dir, 'new1')
+ new2_path = os.path.join(new1_path, 'new2')
+ os.mkdir(new1_path)
+ os.mkdir(new2_path)
+ svntest.actions.run_and_verify_svn(None, None, [],
+ "add",
"--depth", "files", new1_path)
+
#----------------------------------------------------------
------------
# list all tests here, starting with None:
 -1135,6
+1146,7 
diff_in_depthy_wc,
commit_depth_immediates,
depth_immediates_receive_new_dir,
+ add_tree_at_depth_files,
]
if __name__ == "__main__":
------------------------------------------------------------
---------
To unsubscribe, e-mail: issues-unsubscribe subversion.tigris.org
For additional commands, e-mail: issues-help subversion.tigris.org
|