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

RE: Checking out only a subdirectory of a project?

From: Tom Malia <tommalia_at_ttdsinc.com>
Date: 2007-03-09 16:44:17 CET

Purhaps my problem is that I misunderstood how I should be creating
"branches"?

I thought that a "branch" was really just a different subdirectory under the
existing svn project... so I created my V55 and V65 directories by simply
doing a: svn mkdir V55 and: svn mkdir V65 respectively... should I have used
something else to do this?

To be really specific, here's the actual batch script I used to build the
initial repository:

:CREATE_SCC_DIR
if exist scc goto CREATE_VENDOR_DIR
md scc
:CREATE_VENDOR_DIR
if exist scc\Vendors goto CREATE_SOLOMON_REPO
md scc\vendors
:CREATE_SOLOMON_REPO
cd scc\vendors
svnadmin create Solomon
copy c:\svnsolomontemplate\svnserve.conf solomon\conf
copy c:\svnsolomontemplate \passwd Solomon\conf
:CREATE_TEMPLET_WD
md c:\temp\SVN_SOLOMON_TEMPLET
cd \temp\SVN_SOLOMON_TEMPLET
svn co svn://localhost/scc/vendors/solomon
cd \temp\SVN_SOLOMON_TEMPLET\Solomon
svn mkdir versions
svn mkdir versions\55_sp4
svn mkdir versions\55_sp4\Solomon
svn mkdir versions\60_sp2
svn mkdir versions\60_sp2\Solomon
svn mkdir versions\65_sp1
svn mkdir versions\65_sp1\Solomon
svn commit -m"initialization"

-----Original Message-----
From: Tom Malia [mailto:tommalia@ttdsinc.com]
Sent: Friday, March 09, 2007 10:32 AM
To: 'Andy Levy'
Cc: users@subversion.tigris.org
Subject: RE: Checking out only a subdirectory of a project?

Thanks,

I'm not sure which if the possible problems I'm having but hopefully this my
mean something to you more experienced folks:

My repository is actual in c:\scc\vendors
In that directory is where I issued the command:
 svnadmin create Solomon

Then I checked that project out to a working directory and added the
subdirectories for the different versions that I will need to support.

Now:
If I try
svn co svn://localhost/scc/Vendors/Solomon/V55/Solomon Solomon
I get a message:
"svn: URL 'svn://localhost/scc/vendors/Solomon' doesn't exist"

However, if I try:
svn co svn://localhost/scc/Vendors/Solomon Solomon
I don't get any errors, but it checks out all my different version
subdirectories (as I would expect)

So, What Might I be ding wrong?

I'm using the built in svnserve not apache.
I've edited the svnsrve.cnf and passwd files in the conf directory of the
repository.
Do I need to do something with the authz file as well?

-----Original Message-----
From: Andy Levy [mailto:andy.levy@gmail.com]
Sent: Friday, March 09, 2007 10:17 AM
To: Tom Malia
Cc: users@subversion.tigris.org
Subject: Re: Checking out only a subdirectory of a project?

On 3/9/07, Tom Malia <tommalia@ttdsinc.com> wrote:
>
>
>
>
> OK, now give a repository that looks like:
>
> > VENDOR_REPO_ROOT
>
> >
>
> > |_Solomon
>
> >
>
> > |_versions
>
> >
>
> > |_V55
>
> >
>
> > | |_Solomon
>
> >
>
> > | |_{Version 55 source files}
>
>
>
>
>
> I want to check out ONLY the Solomon directory that is the subfolder of
the
> V55 directory to a working directory named Solomon.. How do I do this?
When
> I try to use :
>
>
>
> Svn co it seems to only let me check out the entire project (i.e. the
first
> "Solomon" folder and all it's children)
>
>
>
> Is it not possible to check out parts of a project independent of the
total
> project?

svn co URL_TO_VENDOR_REPO_ROOT/Solomon/V55/Solomon Solomon

You can check out any directory in SVN at any level. If you can't, I
can think of 3 things going on:

A) You got the URL wrong
B) You've been denied access to that directory
C) That directory is actually an external

If you're serving via Apache, plug the URL that you think is right
into a web browser and see if you can access the directory that way.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Mar 9 16:43:58 2007

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.