# Capistrano with CVS repository doesn't seem to work

**URL:** <https://www.ruby-forum.com/t/capistrano-with-cvs-repository-doesnt-seem-to-work/57434>\
**Category:** Rails\
**Created:** [April 10, 2006, 11:09pm UTC](https://www.ruby-forum.com/t/capistrano-with-cvs-repository-doesnt-seem-to-work/57434 "2006-04-10T23:09:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [April 10, 2006, 11:09pm UTC](https://www.ruby-forum.com/t/capistrano-with-cvs-repository-doesnt-seem-to-work/57434/1 "2006-04-10T23:09:23Z")

</div>

All,

Does anyone has any experience with Capistrano against a CVS repository?

I am unable to successfully pull a revision onto my remote server when  
hitting a CVS repository.

Here is the relevant output from the cap “update\_code” task:

- executing "if [[! -d ~dusan/eSimplyTest/releases/20060410205540]];  
then\n  
cd ~dusan/eSimplyTest/releases;\n  
CVS\_RSH=“ssh  
" cvs -d :pserver:user:pwd@host:/d//cvs -Q co -D “2006-04-05 22:4  
9:05” -d 20060410205540 eSimplyOnlineRails;\n\n (test -e  
~dusan/e  
SimplyTest/revisions.log || touch ~dusan/eSimplyTest/revisions.log &&  
chmod 666  
~dusan/eSimplyTest/revisions.log) && echo `date +\"%Y-%m-%d %H:%M:%S\"`  
$USER 20  
06-04-05 22:49:05 20060410205540 \>\> ~dusan/eSimplyTest/revisions.log;\n  
fi”  
servers: [“192.168.1.102”]  
[192.168.1.102] executing command

Looks to me like this command is probably successfully setting a  
variable named CVS\_RSH and that’s pretty much it. The actual CVS  
command looks right but I don’t think that it ever gets executed.

I replaced user, pwd, and host for their real values :).

Thanks,  
Wes G.

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [April 10, 2006, 11:22pm UTC](https://www.ruby-forum.com/t/capistrano-with-cvs-repository-doesnt-seem-to-work/57434/2 "2006-04-10T23:22:40Z")

</div>

Resolved

I am in a strange situation where I have two different IP addresses that  
I need to use to address the CVS repository, so I had to add another  
variable to my Capistrano configuration file and use that to do the  
query for the latest revision.

Still - any Capistrano/CVS heads out there?

Wes

Wes G. wrote:

> All,
> 
> Does anyone has any experience with Capistrano against a CVS repository?
> 
> I am unable to successfully pull a revision onto my remote server when  
> hitting a CVS repository.
> 
> Here is the relevant output from the cap “update\_code” task:
> 
> - executing "if [[! -d ~dusan/eSimplyTest/releases/20060410205540]];  
> then\n  
> cd ~dusan/eSimplyTest/releases;\n  
> CVS\_RSH=“ssh  
> " cvs -d :pserver:user:pwd@host:/d//cvs -Q co -D “2006-04-05 22:4  
> 9:05” -d 20060410205540 eSimplyOnlineRails;\n\n (test -e  
> ~dusan/e  
> SimplyTest/revisions.log || touch ~dusan/eSimplyTest/revisions.log &&  
> chmod 666  
> ~dusan/eSimplyTest/revisions.log) && echo `date +\"%Y-%m-%d %H:%M:%S\"`  
> $USER 20  
> 06-04-05 22:49:05 20060410205540 \>\> ~dusan/eSimplyTest/revisions.log;\n  
> fi”  
> servers: [“192.168.1.102”]  
> [192.168.1.102] executing command
> 
> Looks to me like this command is probably successfully setting a  
> variable named CVS\_RSH and that’s pretty much it. The actual CVS  
> command looks right but I don’t think that it ever gets executed.
> 
> I replaced user, pwd, and host for their real values :).
> 
> Thanks,  
> Wes G.

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [April 18, 2006, 8:53pm UTC](https://www.ruby-forum.com/t/capistrano-with-cvs-repository-doesnt-seem-to-work/57434/3 "2006-04-18T20:53:12Z")

</div>

Wes,

We’re using Capistrano with CVS. We love Cap and we appreciate the  
built-in CVS support, though we did end up overriding much of it with  
our own Capistrano::SCM::CvsDuke.

We changed the cvs support so that capistrano will check out a specific  
branch or version and we removed the bit where capistrano needed a local  
cvs.exe. We also prompt for a cvs password every time.

If you’re interested, the code is at  
[http://rafb.net/paste/results/4nWjDW73.html](http://rafb.net/paste/results/4nWjDW73.html)

Sandi
