I'm trying to do a checkout from cvs of just the files, not the directory structure. Normally I'd use the -d flag for this, and it works fine normally. However now it's failing.

my setup on the cvs server is:

[root@CVS-SERVER ~]# cd /var/cvs/
[root@CVS-SERVER cvs]# ll /var/cvs
total 24
drwxrwsr-x.  7 cvs  cvs 4096 Apr 21 10:57 bin
drwxrwsr-x. 11 root cvs 4096 Apr 21 11:13 conf
drwxrwsr-x.  3 cvs  cvs 4096 Apr 21 11:14 CVSROOT
[root@CVS-SERVER cvs]# ll /var/cvs/conf/logrotate/logrotate.d/
total 160
-r--r--r--. 1 user cvs 344 Mar  3 01:55 acpid,v
-r--r--r--. 1 user cvs 358 Mar  3 01:55 aide,v
-r--r--r--. 1 user cvs 600 Apr 14 13:02 audit,v
-r--r--r--. 1 user cvs 417 Mar  3 01:55 boot,v
-r--r--r--. 1 user cvs 439 Mar  3 01:55 btmp,v
-r--r--r--. 1 root cvs 350 Mar  3 01:58 cacti,v
-r--r--r--. 1 user cvs 413 Mar  3 01:55 cron,v
-r--r--r--. 1 user cvs 408 Mar  3 01:55 dmesg,v
-r--r--r--. 1 user cvs 404 Mar  3 01:55 httpd,v
-r--r--r--. 1 user cvs 326 Mar  3 01:55 iptables,v
-r--r--r--. 1 user cvs 419 Mar  3 01:55 maillog,v
-r--r--r--. 1 user cvs 414 Mar  3 01:55 messages,v
-r--r--r--. 1 root cvs 570 Mar  3 01:58 nagios,v
-r--r--r--. 1 user cvs 512 Mar  3 01:55 psacct,v
-r--r--r--. 1 user cvs 350 Mar  3 01:55 sa,v
-r--r--r--. 1 user cvs 417 Mar  3 01:55 secure,v
-r--r--r--. 1 user cvs 380 Mar  3 01:55 snmpd,v
-r--r--r--. 1 user cvs 419 Mar  3 01:55 spooler,v
-r--r--r--. 1 user cvs 439 Mar  3 01:55 wtmp,v
-r--r--r--. 1 user cvs 325 Mar  3 01:55 yum,v

on the client:

[root@CVS-CLIENT ~]# export CVSROOT=:pserver:user@11.22.33.44:/var/cvs
[root@CVS-CLIENT ~]# cvs login
Logging in to :pserver:user@11.22.33.44:xxxx/var/cvs
CVS password:
[root@CVS-CLIENT ~]#

the command i'm using is:

[root@CVS-CLIENT logrotate.d]# cvs co -d . conf/logrotate/logrotate.d/

and the error im getting is:

cvs checkout: existing repository /var/cvs does not match /var/cvs/conf/logrotate/logrotate.d
cvs checkout: ignoring module conf/logrotate/logrotate.d

and the logs on the server are:

[root@CVS-SERVER log]# tail -f messages
Apr 21 11:51:45 admin xinetd[911]: START: cvspserver pid=3321 from=11.22.33.45
Apr 21 11:51:45 admin xinetd[911]: EXIT: cvspserver status=0 pid=3321 duration=0(sec)

Thoughts?

asked 21 Apr '11, 11:55

rfelsburg's gravatar image

rfelsburg ♦
6061618
accept rate: 25%




Figured it out.

Apparently cvs doesn't like path_names, only single directories. Who knew?

so

cvs co -d path/to/dir module_path_name FAIL
cvs co -d dir module_path_name SUCCESS

Workaround is;

[root@CVS-CLIENT user]#cd /etc
[root@CVS-CLIENT etc]# cvs checkout -d logrotate.d conf/logrotate/logrotate.d/
cvs checkout: Updating logrotate.d
U logrotate.d/acpid
cvs checkout: move away logrotate.d/aide; it is in the way
C logrotate.d/aide
U logrotate.d/audit
U logrotate.d/boot
U logrotate.d/btmp
U logrotate.d/cacti
U logrotate.d/cron
U logrotate.d/dmesg
cvs checkout: move away logrotate.d/httpd; it is in the way
C logrotate.d/httpd
U logrotate.d/iptables
U logrotate.d/maillog
U logrotate.d/messages
U logrotate.d/nagios
cvs checkout: move away logrotate.d/psacct; it is in the way
C logrotate.d/psacct
U logrotate.d/sa
U logrotate.d/secure
U logrotate.d/snmpd
U logrotate.d/spooler
U logrotate.d/wtmp
cvs checkout: move away logrotate.d/yum; it is in the way
C logrotate.d/yum
[root@CVS-CLIENT etc]#
link

answered 21 Apr '11, 12:21

rfelsburg's gravatar image

rfelsburg ♦
6061618
accept rate: 25%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×1
×1
×1
×1

Asked: 21 Apr '11, 11:55

Seen: 4,805 times

Last updated: 21 Apr '11, 12:21

Related questions

powered by OSQA