On Fri, 2002-10-25 at 13:43, Kirby C. Bohling wrote:
> On Fri, 2002-10-25 at 13:36, Philip Martin wrote:
> >
> > It's not a simple problem however you do it. Consider
> >
> > $ cd /xxx/xxx
> > $ mkdir aaa
> > $ mkdir aaa/aaa
> > $ svn add aaa/aaa /xxx/xxx/aaa
> >
> > where we need /xxx/xxx/aaa before aaa/aaa, versus
> >
> > $ cd /aaa
> > $ mkdir xxx
> > $ mkdir xxx/xxx
> > $ svn add /aaa/xxx/xxx xxx
> >
> > where we need xxx before /aaa/xxx/xxx
> >
> > I think the general solution is to call svn_path_get_absolute and then
> > sort using svn_path_is_child. A bit like svn_path_condense_targets.
>
> Just an idea. Add the equivilent of mkdir -p,--parents, which means if
> there is a component of this path which you must add first, add it, then
> add the subcomponent all the way down. Maybe --add-parents instead of
> --parents. If svn prints an error for adding something that is already
> added that might be an issue, but possibly supressing it when --parents
> would work. I always use this when I'm scripting up the creation of a
> path, because it's easier then ensuring the entire path exists. I
> suppose it might be slower then the other way. However, your solving
> the problem more directly which appeals to me.
>
> Kirby
Darn it, should think longer before clicking send. --parents would do
bad things in the absolute path case. It didn't occur to me, because
CVS won't let me add stuff using a relative path from above the working
copy. ie:
cvs add dir_above/wc/sub_dir/file.c
doesn't work.
cd dir_above/wc ; cvs add sub_dir/file.c does work.
Sorry about the noise,
Kirby
>
>
> >
> > --
> > Philip Martin
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: dev-help@subversion.tigris.org
> >
> --
> Real Programmers view electronic multimedia files with a hex editor.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>
--
Real Programmers view electronic multimedia files with a hex editor.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Oct 25 21:07:37 2002