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

Re: Newbie question using svnserve

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-11-06 06:40:17 CET

On Nov 6, 2005, at 06:13, Tony wrote:

> Thanks. After your reply I ran more examples and reviewed my
> command history on my desktop. I found that when I ran the
> following on the local desktop:
>
> $ svn checkout file:///path/to/project/trunk project
>
> it downloaded the project files without the trunk/ branches/ or
> tags/ subdirectories. I then tried a similar command on my remote
> laptop (adding the extra "project" to the end):
>
> $ svn checkout svn+ssh://xxx.xxx.xxx.xxx/path/to/project/trunk project
>
> It is not altogether clear to me how the extra "project" is
> interpreted. Anyway it works.

Well, understand how it works. The syntax of svn checkout is very
staightforward. From svn help checkout:

> usage: checkout URL[@REV]... [PATH]
>
> If PATH is omitted, the basename of the URL will be used as the
> destination.

We'll just ignore the optional [@REV]... part here. Some examples to
make it clearer:

# Check out /path/to/project into a directory called project
svn checkout $URL/path/to/project

# Same thing
svn checkout $URL/path/to/project project

# Check out /path/to/project/trunk into a directory called trunk
svn checkout $URL/path/to/project/trunk

# Same thing
svn checkout $URL/path/to/project/trunk trunk

# Check out /path/to/project/trunk into a directory called project
svn checkout $URL/path/to/project/trunk project

# Check out /path/to/project/trunk into a directory called foobar
svn checkout $URL/path/to/project/trunk foobar

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Nov 6 06:41:49 2005

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.