# Questions on using Capistrano with CVS

**URL:** <https://www.ruby-forum.com/t/questions-on-using-capistrano-with-cvs/82589>\
**Category:** Rails\
**Created:** [March 16, 2006, 4:52pm UTC](https://www.ruby-forum.com/t/questions-on-using-capistrano-with-cvs/82589 "2006-03-16T16:52:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeroen\_Heijmans](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e56c9b/32.png) [@Jeroen\_Heijmans](https://www.ruby-forum.com/u/Jeroen_Heijmans)\
**Post date:** [March 16, 2006, 4:52pm UTC](https://www.ruby-forum.com/t/questions-on-using-capistrano-with-cvs/82589/1 "2006-03-16T16:52:40Z")

</div>

Today I managed to deploy my application using Capistrano, using CVS as  
the SCM, but I had to use some workarounds I’m not quite happy about.  
Maybe I just did something wrong, maybe these are missing features/bugs  
in Capistrano:

1. I used Capistrano earlier with SVN, and there it re-used the password  
for the remote server for doing the checkout. However, CVS kept  
complaining the access was attempted with an “empty password”,  
apparently not re-using the password. In the end, I set up my  
CVS-account with an empty password, and it worked, but I would really  
prefer having an account with password.
2. The CVS checkout is done with -D and a revision date. However, this  
date is last revision date of my application, and therefore CVS doesn’t  
actually checkout any files. I worked around this by removing this  
argument from the code, but I have the feeling this is not right.

Any suggestions to what I may be doing wrong are appreciated.

Thanks,

Jeroen Heijmans

---

<div class="post-metadata">

**Author:** ![Jeroen\_Heijmans](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e56c9b/32.png) [@Jeroen\_Heijmans](https://www.ruby-forum.com/u/Jeroen_Heijmans)\
**Post date:** [March 16, 2006, 5:03pm UTC](https://www.ruby-forum.com/t/questions-on-using-capistrano-with-cvs/82589/2 "2006-03-16T17:03:27Z")

</div>

Jeroen,

For the record, I don’t use CVS and so the CVS module (being written  
by me) is almost certainly not right. I would appreciate any patches  
to make it work as smoothly as the SVN module.

- Jamis

---

<div class="post-metadata">

**Author:** ![Jeroen\_Heijmans](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e56c9b/32.png) [@Jeroen\_Heijmans](https://www.ruby-forum.com/u/Jeroen_Heijmans)\
**Post date:** [March 16, 2006, 5:19pm UTC](https://www.ruby-forum.com/t/questions-on-using-capistrano-with-cvs/82589/3 "2006-03-16T17:19:05Z")

</div>

Never used Capistrano… From what I understand about your problem it  
looks like one I already encountered (with Maven for example).  
As far as i can remember, CVS can store usernames/passwords in a crypted  
file on your computer. If you do so, CVS don’t ask for a password  
anymore  
if it can read it from this file.  
I haven’t used it for a long time but i think this file is named  
“.cvspass” and you can generate it with a “cvs login” command. This file  
is usually in your HOME directory.

HTH.

Stéphane Thibaudeau.

---

<div class="post-metadata">

**Author:** ![Jeroen\_Heijmans](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e56c9b/32.png) [@Jeroen\_Heijmans](https://www.ruby-forum.com/u/Jeroen_Heijmans)\
**Post date:** [March 16, 2006, 7:28pm UTC](https://www.ruby-forum.com/t/questions-on-using-capistrano-with-cvs/82589/4 "2006-03-16T19:28:08Z")

</div>

StÃ©phane:

> I haven’t used it for a long time but i think this file is named  
> “.cvspass” and you can generate it with a “cvs login” command. This file  
> is usually in your HOME directory.

You are right, this method also works (in fact I tried it already before  
posting), but a (minor) disadvantage is that you’ll have to use cvs  
login on the target machien before being able to deploy. It might be  
possible to do this using Capistrano, of course.

Jamis:

> For the record, I don’t use CVS and so the CVS module (being written  
> by me) is almost certainly not right. I would appreciate any patches  
> to make it work as smoothly as the SVN module.

Yes, I understood as much when searching the web for answers. I’ll  
certainly let you know if I find better ways to use CVS from Capistrano.
