Re: [rfc/patch] Fix issue 734, import should 'mkdir -p'
From: <cmpilato_at_collab.net>
Date: 2003-05-07 04:21:01 CEST
David Kimdon <dwhedon@debian.org> writes:
> On Sat, May 03, 2003 at 11:15:27AM -0500, cmpilato@collab.net wrote:
I've reviewed this patch, and generally it looked pretty good. Only
> + for (i = 0; i < dirs->nelts; i++)
In this loop, you're continually calling add_directory with a parent
> /* Close up the show; it's time to go home. */
Here, you dive into the array without making sure it's non-NULL.
-- Aside from those things, it all looks pretty good. I've corrected the above problems on my local machine, and am gonna do a little hand-testing to verify that *I* didn't break something. After that, I'll commit crediting you with the patch. Of course, there is one other thing bugging me. It's not about your patch, it's about the original issue. Am I alone in thinking that it's ridiculous that import takes 3 arguments at all? I mean, in my ideal world, import would look like: svn import DESTINATION SOURCE [...] If destination didn't exist, it and all the intermediate directories needed would be created. If there were multiple SOURCE(s), then DESTINATION would be created as a directory, and each of the sources added to it by their basenames. I'd like to argue this design before your patch goes in, if that's alright with you. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Wed May 7 04:25:35 2003 |
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.