Bug 34491 - cvs bug in client/server cvs co -d option
Summary: cvs bug in client/server cvs co -d option
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: cvs
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Martin Stransky
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-04-03 12:52 UTC by Thomas Moschny
Modified: 2007-04-18 16:32 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-12-14 09:53:00 UTC
Embargoed:


Attachments (Terms of Use)

Description Thomas Moschny 2001-04-03 12:52:12 UTC
The '-d' option to 'cvs co' does not work if used to checkout via the
'pserver' method.
This switch is used to give the name of the directory that should be used
to checkout to (besides from the fact that the path will be shortened, if
one checks out only one module and does not specify '-N')

Reproducible: Always
Steps to Reproduce:
server: has repository /projects/work with module myprg
client:
$ mkdir /tmp/test ; cd /tmp/test
$ cvs -d :pserver:user@server:/projects/work cluster co -d  . myprg

Actual Results:  response is:
cvs server: existing repository /projects/work does not match
/projects/work/myprg
cvs server: ignoring module myprg

Expected Results:  On the server, the repository can be reached using
:local: method, and everything works fine, then.


Additional Information: Bug remains with rawhide cvs-1.11-3.

Comment 1 Thomas Moschny 2001-04-04 15:24:37 UTC
As a workaround, one can create 'CVS' subdir with files 'CVS/Root' and
'CVS/Repository',
fill in manually the correct values, then touch 'CVS/Entries' and do a 'cvs
update' 
instead of checkout.

Comment 2 Thomas Moschny 2004-08-04 14:00:37 UTC
In cvs-1.11.17-2 from FC 2 the bug is still present.  
 
Additional note: the -d option works if a named subdir is specified 
like this: 
$ cvs -d :pserver:user@server:/projects/work co -d foo myprg 
 
What is not possible is to checkout to the cwd using "-d .". This 
still shows the behaviour reported initially. 
 
PS: Please ignore/delete the word 'cluster' in the sample cmdline of 
the initial bugreport :-) 
 

Comment 3 Martin Stransky 2005-03-10 14:47:32 UTC
Why do you want to use "-d ."?

Comment 4 Thomas Moschny 2005-03-10 15:22:37 UTC
Funny question. This bug report is several years old, and I don't
remember my exact reasons anymore :-)

The co command creates a directory to checkout to. Default is the name
of the module that gets checked out, and -d overrides that. It seemed
naturally to me that "-d ." would omit the directory creation step and
use the cwd instead.

While such behaviour is not really needed (using svn these days
anyway), the error message is very misleading.

So, at least, this special case should be caught and a message like
"'-d .' not supported" should be emitted instead of trying to pass a
wrong path to the server.


Note You need to log in before you can comment on or make changes to this bug.