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

Re: Bogus revision switches for svn checkout?

From: Frodak Baksik <frodak17_at_gmail.com>
Date: 2007-02-16 18:12:39 CET

On 2/16/07, Andrew R Feller wrote:
>
>
>
>
> Hello everyone,
>
>
>
> Although svn help checkout specifies that alternate revision switches such
> as PREV, BASE, and COMMITTED can be used, SVN complains that they are bogus
> revision options. The Subversion book's entry on svn checkout
> (http://svnbook.red-bean.com/nightly/en/svn.ref.svn.c.checkout.html)
> doesn't mention the alternate revision switches. How do these work? I am
> currently using the Subversion 1.4.2 command-line client.
>
>
>
> SVN Help usage information
>
>
>
> [afelle1@uisrcs001 tmp]$ svn help checkout
>
> checkout (co): Check out a working copy from a repository.
>
> usage: checkout URL[@REV]... [PATH]
>
>
>
> If specified, REV determines in which revision the URL is first
>
> looked up.
>
>
>
> If PATH is omitted, the basename of the URL will be used as
>
> the destination. If multiple URLs are given each will be checked
>
> out into a sub-directory of PATH, with the name of the sub-directory
>
> being the basename of the URL.
>
>
>
> Valid options:
>
> -r [--revision] arg : ARG (some commands also take ARG1:ARG2 range)
>
> A revision argument can be one of:
>
> NUMBER revision number
>
> '{' DATE '}' revision at start of the date
>
> 'HEAD' latest in repository
>
> 'BASE' base rev of item's working copy
>
> 'COMMITTED' last commit at or before BASE
>
> 'PREV' revision just before COMMITTED

Note that BASE states "base rev of item's working copy", because you
are checking the items out, there is no working copy.

Therefore, BASE, COMMITTED, PREV are meaningless to the checkout command.

>
>
>
> Failed SVN checkout commands
>
>
>
> [afelle1@uisrcs001 tmp]$ svn checkout -r 'COMMITTED'
> file:///home/afelle1/repos/cobol_svn committed
>
> svn: Bogus revision information given
>
> [afelle1@uisrcs001 tmp]$ svn checkout -r 'BASE'
> file:///home/afelle1/repos/cobol_svn base
>
> svn: Bogus revision information given
>
> [afelle1@uisrcs001 tmp]$ svn checkout -r 'PREV'
> file:///home/afelle1/repos/cobol_svn previous
>
> svn: Bogus revision information given
>
>
>
> Thank you for any assistance,
>
> Andrew
>

I'm pretty sure the help command prints the same stock info about the
-r option, even though in the case of checkout, BASE, PREV, COMMITTED,
should not be used.

:-)
Frodak

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 16 18:13:08 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.