Forum: Ruby on Rails Capistrano with CVS repository doesn't seem to work

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bb4bdf2b184027bc38d4fb529770cde5?d=identicon&s=25 Wes Gamble (weyus)
on 2006-04-10 23:09
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 Gamble
Bb4bdf2b184027bc38d4fb529770cde5?d=identicon&s=25 Wes Gamble (weyus)
on 2006-04-10 23:22
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 Gamble 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 Gamble
Ec2248a75e96081bb3f4547caa896224?d=identicon&s=25 Sandi Metz (Guest)
on 2006-04-18 20:53
(Received via mailing list)
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

Sandi
This topic is locked and can not be replied to.