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

Re: Imported subdirectory checkout problems

From: Jack Repenning <jrepenning_at_collab.net>
Date: 2003-08-25 18:48:40 CEST

At 6:31 AM -0400 8/23/03, Maciej & Branka wrote:
>I have noticed a strange behavior when I tried to accessed
>(checkout) a subdirectory
>within the repository right after the import. What I did was:
>
> 1 - svnadmin create /path/to/repository
> 2 - cd /local/directory
> 3 - svn import
>test <file:///path/to/repository>file:///path/to/repository -m ""
>
>test directory has layout: test/stuff
>Now if I try to checkout test as:
>
> svn co <file:///path/to/repository>file:///path/to/repository
>=> OK
> svn co
><file:///path/to/repository/test/stuff>file:///path/to/repository/test/stuff
>=> WRONG!!!
>
> I'm getting:
>
>svn: Bad URL passed to RA layer
>svn: Source URL doesn't exist:
><file:///path/to/repository/test/stuff>file:///path/to/repository/test/stuff.
>
>But, if I checkout
><file:///path/to/repository>file:///path/to/repository move stuff to
>stuff_second
>check it in and do:
>svn co <>file:///path/to/repository/test/stuff_second => IT WORKS

What you expect, should in fact work (having imported stuff, it
darned well ought to be there). What you had to do to get around it
oughtn't to be necessary. Your reflexes are sound.

However, when I follow your recipe, I don't get quite the results you
describe/expect. Specifically, when I "svn import test
file:///path/to/repository", I create a new folder named "stuff" --
*not* "test". The import syntax equates the folder "repository" with
the folder "test", causing the *contents* of "test" to be imported
into "repository," not "test" itself. That would explain why your
subsequent attempt to checkout ".../repository/test/..." fails: there
ain't no such aminal. One would think that it would mess up some of
your later experiments as well, but you're not quite as explicit
about them, so I can't be sure (and I'm quite certain that I, for
one, am quite capable of fumbling things like this without noticing).

Could this be the source of the confusion?

(Note that I tried this with 0.26, where the import syntax is
reversed, but I don't think this question of whether test goes *into*
repository or *becomes* repository changed.)

-- 
-==-
Jack Repenning
CollabNet, Inc.
8000 Marina Boulevard, Suite 600
Brisbane, California 94005
o: 650.228.2562
c: 408.835-8090
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 25 18:49:57 2003

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.