Discussion:
cvs - checkout single file to different directory
(too old to reply)
Jhz
2003-07-02 13:49:03 UTC
Permalink
Hi,

I want to checkout a single file from a module to the current directory.
if i do
cvs co javapos/sources/runJavaTerm.sh
it does the checkout, but off course under javapos/sources.

if i do
cvs -d . javapos/sources/runJavaTerm.sh
I get an error (ignoring module java....)

Any way to achieve what I want ?

Thanks,

JOHan.
Jamie Plessas
2003-07-02 16:18:34 UTC
Permalink
I think cvs co -d . javapos/sources/runJavaTerm.sh is what you are looking
for. Someone correct me if I am wrong...

Cheers
Post by Jhz
Hi,
I want to checkout a single file from a module to the current directory.
if i do
cvs co javapos/sources/runJavaTerm.sh
it does the checkout, but off course under javapos/sources.
if i do
cvs -d . javapos/sources/runJavaTerm.sh
I get an error (ignoring module java....)
Any way to achieve what I want ?
Thanks,
JOHan.
Jhz
2003-07-03 09:27:40 UTC
Permalink
it was a typo error ...

i indeed did type
cvs co -d . javapos/sources/runJavaTerm.sh

This is the error :

cvs server: existing repository /development/engineering does not match
/development/engineering/javapos/sources
cvs server: ignoring module javapos/sources/runJTest.sh

if I type

cvs co javapos/sources/runJavaTerm.sh

it works, but not what i am looking for.
Post by Jamie Plessas
I think cvs co -d . javapos/sources/runJavaTerm.sh is what you are looking
for. Someone correct me if I am wrong...
Cheers
Post by Jhz
Hi,
I want to checkout a single file from a module to the current directory.
if i do
cvs co javapos/sources/runJavaTerm.sh
it does the checkout, but off course under javapos/sources.
if i do
cvs -d . javapos/sources/runJavaTerm.sh
I get an error (ignoring module java....)
Any way to achieve what I want ?
Thanks,
JOHan.
Jamie Plessas
2003-07-03 16:37:54 UTC
Permalink
I see what you are saying now, because of how CVS stores it repository
branch and revision info on your machine it wants to create the same file
structure. The -d option is basically a mkdir and cd in the same command. It
will make ./javapos if it does not exist and start the checkout.

I searched through the docs and don't see an easy way to do what you want. I
see a couple of hard ways to do it, but both assume you have control of the
repository and can make structure changes, not real practical.

Maybe someone else has way. Good Luck
Post by Jhz
it was a typo error ...
i indeed did type
cvs co -d . javapos/sources/runJavaTerm.sh
cvs server: existing repository /development/engineering does not match
/development/engineering/javapos/sources
cvs server: ignoring module javapos/sources/runJTest.sh
if I type
cvs co javapos/sources/runJavaTerm.sh
it works, but not what i am looking for.
Post by Jamie Plessas
I think cvs co -d . javapos/sources/runJavaTerm.sh is what you are
looking
Post by Jamie Plessas
for. Someone correct me if I am wrong...
Cheers
Post by Jhz
Hi,
I want to checkout a single file from a module to the current directory.
if i do
cvs co javapos/sources/runJavaTerm.sh
it does the checkout, but off course under javapos/sources.
if i do
cvs -d . javapos/sources/runJavaTerm.sh
I get an error (ignoring module java....)
Any way to achieve what I want ?
Thanks,
JOHan.
Andrew Patterson
2003-07-08 20:32:43 UTC
Permalink
Post by Jamie Plessas
I think cvs co -d . javapos/sources/runJavaTerm.sh is what you are looking
for. Someone correct me if I am wrong...
Cheers
Post by Jhz
Hi,
I want to checkout a single file from a module to the current directory.
if i do
cvs co javapos/sources/runJavaTerm.sh
it does the checkout, but off course under javapos/sources.
if i do
cvs -d . javapos/sources/runJavaTerm.sh
I get an error (ignoring module java....)
Any way to achieve what I want ?
Thanks,
JOHan.
I think the -p (checkout to stdout) will help here, e.g.,

$ cvs co -p javapos/sources/runJavaTerm.sh >runJavaTerm.sh

Andrew Patterson
Koushik Banerjee
2003-07-11 14:19:10 UTC
Permalink
"Jhz" <***@hotmail.com> wrote in message news:3f02e2cf$0$294$***@reader0.news.skynet.be...
: Hi,
:
: I want to checkout a single file from a module to the current directory.
: if i do
: cvs co javapos/sources/runJavaTerm.sh
: it does the checkout, but off course under javapos/sources.
:
: if i do
: cvs -d . javapos/sources/runJavaTerm.sh
: I get an error (ignoring module java....)
:
: Any way to achieve what I want ?
:
: Thanks,
:
: JOHan.
:
:
Where are you trying to check out ? If you are "-d ." refers to the
directory where you already have some CVS files checked out, it will through
an error. Try this in a directory where you do not have any files from CVS
checkedout. You can think of creating an alias with which you can check out
whch ever directories you want in a particular directory structure.

Koushik.

Loading...