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

Re: [BOOK] Wrong usage of 'svn import' command

From: Mark Benedetto King <mbk_at_lowlatency.com>
Date: 2004-08-09 00:14:55 CEST

On Sun, Aug 08, 2004 at 11:12:46PM +0200, Guido Ostkamp wrote:
>
> Hello Subversion book authors,
>
> I used subversion 1.0.6 for the very first time today and tried your book
> as primer.
>
> However, when I wanted to 'svn import' a local directory structure I found
> lots of examples for this command to be inaccurate - it doesn't work as
> described, you get an error instead. I don't know whether this is caused
> by a recent change in the command syntax.

There was a change, but it wasn't recent: version 0.25.0 introduced
the change (see CHANGES), over a year ago.

>
> The incorrect examples are given at these locations:
>
> 1. Introduction
> A Quick Start
> ...
>
> $ svn import /tmp/project file:///path/to/repos -m "initial import"
> ...
> 3. Guided Tour
> svn import
> ...
> $ svn import mytree file:///usr/local/svn/newrepos/some/project
> ...
> 9. Subversion Complete Reference
> The Subversion Command Line Client: svn
> svn Subcommands
> svn import
> ...
>

These examples are all correct. What errors were you getting?

> The command 'man svn' says
>
> import Repository-URL [Path] [New-Repository-Entry]
> [--username name] [--password pass] [--no-auth-cache]
> [--encoding] [-FmqN]
> Import a file or tree into the repository.
>
> which means that the 'repository-URL' is the first, not the second
> argument.

You are looking at a very old version of the svn man page. It hasn't
said that since 2003-10-07.

>
> Would you please fix the book?
>
> Thank you.
>

The book is correct, your man page it out of date.

--ben

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Aug 9 00:14:06 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.