You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Narendra Upadhyay <un...@surfkitchen.com> on 2008/06/18 14:58:02 UTC

How to get the module name as the top level folder in subversion checkout

Hi,

 

When I am trying to checkout a module in subversion, it creates three
folders in my current directory - trunk, branches and tags; but it does
not create the module name as the top level folder. Could you please let
know if it's a configuration issue or limitation of subversion.

 

Regards,

Narendra

 


This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email

Re: How to get the module name as the top level folder in subversion checkout

Posted by Blair Zajac <bl...@orcaware.com>.
Narendra Upadhyay wrote:
> Hi Ryan,
> 
> Thank you for your prompt response to my query.
> 
> My question was a bit different. I am trying to checkout the whole
> folder containing trunk, branches and tags just for the verification
> purpose.
> 
> For example,
> svn+ssh://<svn server name>/someproj


Which client are you using?

If you're using the command line client then yes, it should create someproj.  If 
you're using another client, then it's up to that tool.

Regards,
Blair

-- 
Blair Zajac, Ph.D.
CTO, OrcaWare Technologies
<bl...@orcaware.com>
Subversion training, consulting and support
http://www.orcaware.com/svn/

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

Re: RE: How to get the module name as the top level folder in subversion checkout

Posted by Hari Kodungallur <hk...@gmail.com>.
On Thu, Jun 19, 2008 at 7:47 AM, Giulio Troccoli <
Giulio.Troccoli@uk.linedata.com> wrote:

> > For example,
> > svn+ssh://<svn server name>/someproj
> >
> > Now, ideally it should create "someproj" as a folder in my current
> > directory and then should download truck, branches and tags into
> > "someproj" folder. But the someproj folder does not get created, and
> the
> > trunk, branches etc get downloaded to my current directory.
> >
> > I just want to know if this is the desired behavior of subversion or
> > some configuration issue.
>
> I think you need a dot at the end, so something like
>
> svn co svn+ssh://<svn server name>/someproj .
>

The second parameter to co command is the checkout directory. If it is not
provided then it will take the last part of URL in the first parameter.

That is, the dot at the end will NOT create someproj. And without the dot,
it (at least the command line client) should create someproj directory and
checkout everything there.

With the dot, it will checkout everything (trunk, branches and tag in this
case) to the current directory. May be that is what Narendra did? Or may be
he used another client, as Blair mentioned.

rgds
-Hari

RE: RE: How to get the module name as the top level folder in subversion checkout

Posted by Giulio Troccoli <Gi...@uk.linedata.com>.
> For example,
> svn+ssh://<svn server name>/someproj
> 
> Now, ideally it should create "someproj" as a folder in my current
> directory and then should download truck, branches and tags into
> "someproj" folder. But the someproj folder does not get created, and
the
> trunk, branches etc get downloaded to my current directory.
> 
> I just want to know if this is the desired behavior of subversion or
> some configuration issue.

I think you need a dot at the end, so something like

svn co svn+ssh://<svn server name>/someproj .

Regards,
Giulio
 
 
Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851     VAT Reg No 778499447

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

RE: How to get the module name as the top level folder in subversion checkout

Posted by Narendra Upadhyay <un...@surfkitchen.com>.
Hi Ryan,

Thank you for your prompt response to my query.

My question was a bit different. I am trying to checkout the whole
folder containing trunk, branches and tags just for the verification
purpose.

For example,
svn+ssh://<svn server name>/someproj

Now, ideally it should create "someproj" as a folder in my current
directory and then should download truck, branches and tags into
"someproj" folder. But the someproj folder does not get created, and the
trunk, branches etc get downloaded to my current directory.

I just want to know if this is the desired behavior of subversion or
some configuration issue.

Thanks,
Narendra
 

-----Original Message-----
From: Ryan Schmidt [mailto:subversion-2008b@ryandesign.com] 
Sent: 18 June 2008 23:17
To: Narendra Upadhyay
Cc: users@subversion.tigris.org
Subject: Re: How to get the module name as the top level folder in
subversion checkout

On Jun 18, 2008, at 9:58 AM, Narendra Upadhyay wrote:

> When I am trying to checkout a module in subversion, it creates  
> three folders in my current directory - trunk, branches and tags;  
> but it does not create the module name as the top level folder.  
> Could you please let know if it's a configuration issue or  
> limitation of subversion.

There are no "modules" in a Subversion repository. There are only  
directories and files.

Check out just the directory you want, and name it what you want. You  
almost certainly do not want to check out trunk, all branches and all  
tags. Instead, check out only the trunk, or only a specific branch,  
or only a specific tag.

For example:

svn checkout http://www.example.org/svn/someproj/trunk someproj-trunk

(checks out someproj/trunk into a local directory someproj-trunk)


This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email

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


Re: How to get the module name as the top level folder in subversion checkout

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jun 18, 2008, at 9:58 AM, Narendra Upadhyay wrote:

> When I am trying to checkout a module in subversion, it creates  
> three folders in my current directory – trunk, branches and tags;  
> but it does not create the module name as the top level folder.  
> Could you please let know if it’s a configuration issue or  
> limitation of subversion.

There are no "modules" in a Subversion repository. There are only  
directories and files.

Check out just the directory you want, and name it what you want. You  
almost certainly do not want to check out trunk, all branches and all  
tags. Instead, check out only the trunk, or only a specific branch,  
or only a specific tag.

For example:

svn checkout http://www.example.org/svn/someproj/trunk someproj-trunk

(checks out someproj/trunk into a local directory someproj-trunk)


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