View Full Version : cvs - checkout single file to different directory
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
07-02-2003, 08:18 AM
I think cvs co -d . javapos/sources/runJavaTerm.sh is what you are looking
for. Someone correct me if I am wrong...
Cheers
"Jhz" <alleetje@hotmail.com> wrote in message
news:3f02e2cf$0$294$ba620e4c@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.
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.
"Jamie Plessas" <jplessas1@attbi.dot.com> wrote in message
news:uBDMa.19647$Xm3.2859@sccrnsc02... I think cvs co -d . javapos/sources/runJavaTerm.sh is what you are
looking for. Someone correct me if I am wrong... Cheers "Jhz" <alleetje@hotmail.com> wrote in message news:3f02e2cf$0$294$ba620e4c@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.
Jamie Plessas
07-03-2003, 08:37 AM
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
"Jhz" <alleetje@hotmail.com> wrote in message
news:3f03f70c$0$280$ba620e4c@reader0.news.skynet.be... 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. "Jamie Plessas" <jplessas1@attbi.dot.com> wrote in message news:uBDMa.19647$Xm3.2859@sccrnsc02... I think cvs co -d . javapos/sources/runJavaTerm.sh is what you are looking for. Someone correct me if I am wrong... Cheers "Jhz" <alleetje@hotmail.com> wrote in message news:3f02e2cf$0$294$ba620e4c@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.
Andrew Patterson
07-08-2003, 12:32 PM
Jamie Plessas wrote: I think cvs co -d . javapos/sources/runJavaTerm.sh is what you are looking for. Someone correct me if I am wrong... Cheers "Jhz" <alleetje@hotmail.com> wrote in message news:3f02e2cf$0$294$ba620e4c@reader0.news.skynet.be...Hi,I want to checkout a single file from a module to the current directory.if i docvs co javapos/sources/runJavaTerm.shit does the checkout, but off course under javapos/sources.if i docvs -d . javapos/sources/runJavaTerm.shI 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
07-11-2003, 06:19 AM
"Jhz" <alleetje@hotmail.com> wrote in message
news:3f02e2cf$0$294$ba620e4c@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.
MyLounge.com Site Map
Forum:
Cars,
Cell Phone,
Database,
Games,
Home Improvement,
IT,
Music,
School,
Sports,
Web Design,
Web Server,
Weight Loss
The MyLounge.com forum is intended for informational use only and should not
be relied upon and is not a substitute for any advice. The information contained
on MyLounge.com are opinions and suggestions of members and is not a representation
of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for
the accuracy, completeness or usefulness of any postings or the qualifications
of any person responding. Please consult a expert or seek the services of an
attorney in your area for more accuracy on your specific situation. Please note
that our forums also serve as mirrors to Usenet newsgroups. Many posts you see
on our forums are made by newsgroup users who may not be members of MyLounge.com
Term of Service
vBulletin v3.0.7, Copyright ©2000-2008, Jelsoft Enterprises Ltd.