You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Tom Malia <to...@ttdsinc.com> on 2007/03/09 14:59:10 UTC

Checking out only a subdirectory of a project?

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?

 


Re: Checking out only a subdirectory of a project?

Posted by Andy Levy <an...@gmail.com>.
On 3/9/07, Tom Malia <to...@ttdsinc.com> wrote:
> 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?

Note in your "doesn't work" example, it says "URL
'svn://localhost/scc/vendors/Solomon' doesn't exist". Your svn co
command that you've given us uses a lower-case V for "vendors"

Is one of those a typo? Remember, SVN is case-sensitive.

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

RE: Checking out only a subdirectory of a project?

Posted by Tom Malia <to...@ttdsinc.com>.
I'M SUCH AN IDIOT!

After carefully reading my own create scripts and revieweing the actual
directory names....it was all just typos and thing on my part!


VERY sorry for bugging everyone.


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

Please note, the list server appears to have stripped some of the carriage
returns from my last email.  Let me see if I can get that batch script to
come through correctly here:

: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"



---------------------------------------------------------------------
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

RE: Checking out only a subdirectory of a project?

Posted by Tom Malia <to...@ttdsinc.com>.
Please note, the list server appears to have stripped some of the carriage
returns from my last email.  Let me see if I can get that batch script to
come through correctly here:

: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"



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

RE: Checking out only a subdirectory of a project?

Posted by Tom Malia <to...@ttdsinc.com>.
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 <to...@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

RE: Checking out only a subdirectory of a project?

Posted by Tom Malia <to...@ttdsinc.com>.
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 <to...@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

Re: Checking out only a subdirectory of a project?

Posted by Andy Levy <an...@gmail.com>.
On 3/9/07, Tom Malia <to...@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


RE: Checking out only a subdirectory of a project?

Posted by Tom Malia <to...@ttdsinc.com>.
I’m using:

Svn, version 1.4.2 (r22196) compiled Nov 3 2006, 16:53:07

 

Copyright © 2000-2006 CollabNet

 

I’m currently doing everything through the command line client and server
utilities (though eventually will have my developers use TSVN)

 

 

  _____  

From: Méresse Christophe [mailto:christophe.meresse@nagra.com] 
Sent: Friday, March 09, 2007 10:31 AM
To: Tom Malia; users@subversion.tigris.org
Subject: RE: Checking out only a subdirectory of a project?

 

 

 


  _____  


From: Tom Malia [mailto:tommalia@ttdsinc.com] 
Sent: vendredi, 9. mars 2007 15:59
To: users@subversion.tigris.org
Subject: Checking out only a subdirectory of a project?

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?

 

That's really strange and this explain also why you have the problems you
described with your svn:externals.

I think that it should not be like that. What version of subversion do you
have ? Do you use a third party tool ?

 

Regards

Christophe

 


RE: Checking out only a subdirectory of a project?

Posted by Méresse Christophe <ch...@nagra.com>.
 


________________________________

	From: Tom Malia [mailto:tommalia@ttdsinc.com] 
	Sent: vendredi, 9. mars 2007 15:59
	To: users@subversion.tigris.org
	Subject: Checking out only a subdirectory of a project?
	
	

	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?

	 

That's really strange and this explain also why you have the problems you described with your svn:externals.

I think that it should not be like that. What version of subversion do you have ? Do you use a third party tool ?

 

Regards

Christophe