[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: possible bug: checkout parent dir fails on subdir if it's wc

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Thu, 28 Aug 2008 17:44:32 +0300 (IDT)

Denis Pokataev wrote on Thu, 28 Aug 2008 at 14:39 +0400:
> So, I assume that it worth sending it to developers as enhancement suggest?
>

Yes. Please link to this thread from the issue.

Thanks,

Daniel

> Denis Pokataev
> (dpokataev_at_team.vega.ru)
>
>
>
> Daniel Shahaf пишет:
> > Please send mails as plain text. See below what it does to quoting.
> >
> > Denis Pokataev wrote on Thu, 28 Aug 2008 at 11:14 +0400:
> >
> > > Daniel Shahaf пишет:
> > >
> > > Denis Pokataev wrote on Tue, 26 Aug 2008 at 13:02 +0400:
> > >
> > > Summary:
> > > checkout parent dir fails on subdir if it's working copy already
> > >
> > > Steps to reproduce:
> > > Assuming repo has
> > > /svn/dir/
> > > /svn/dir/file1
> > > /svn/dir/subdir/
> > > /svn/dir/subdir/file2
> > >
> > > mkdir -p dir/subdir
> > > cd dir/subdir
> > > svn co http://svn.domain/svn/dir/subdir ./
> > > A file2
> > > U .
> > > Checked out revision 1.
> > > cd ../
> > > svn co http://svn.domain/svn/dir ./
> > > A file
> > > svn: Failed to add directory 'subdir': a versioned directory of the same
> > > name already exists
> > >
> > > Question:
> > > Shouldn't it just update 'subdir' as it is working copy already?..
> > >
> > >
> > > 'svn checkout --force'? It will "slide" a working copy under the existing
> > > files. (You might have to remove all .svn dirs first for this to work.)
> > >
> > >
> > > It is possible to do so manually, but I've ran into this problem during
> > > automatical checkout...
> > > And more important - don't you think that it's incorrect behavior? it's
> > > not just a "versioned
> > > directory", it's the same working copy - so it needs regular update, imho.
> > >
> > >
> >
> > Yes, it could be made smarter. It could be taught to detect that it's the
> > same repos (same UUID) and the correct path inside it, and then join the
> > existing dir into the being-checked-out wc.
> >
> > No one wrote that code yet :)
> >
> > Daniel
> >
> >
> >
> > > It is possible to checkout new directory, and later checkout it's
> > > subdirectories - using --depth
> > > key. So, why it's not possible to checkout parent directory later?
> > >
> > > And one more comment:
> > > http://subversion.tigris.org/issues/show_bug.cgi?id=698
> > > comments from Karl Fogel
> > > "Yes. IMHO, a checkout into an existing directory should behave like an
> > > update, assuming that the
> > > checkout is of the same URL that the existing wc represents."
> > >
> > > So?.. checkout into existing subdirectory should behave like an update,
> > > even if parent directory
> > > was not checked out earlier, am I right?
> > >
> > > Denis Pokataev
> > > (dpokataev_at_team.vega.ru)
> > >
> > >

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-28 16:43:52 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.