Hi,
You need to change CVSROOT not only in your WinCVS preferences, but all of
the CVS\Root files in your directories checked out from cvs.
When you check out a directory, cvs creates a directory inside it named CVS.
This contains information to help the cvs client software, in this case
WinCVS, figure out where you got the files from. The files named Root in all
of these CVS directories contain the value of CVSROOT when you did the
checkout.
The easiest thing to do is to delete the checked out workspace and do a
fresh checkout using the new CVSROOT setting.
I recently had to make a domain name change for a cvs server, and we ran the
following script in workspaces which we did not want to start over in. To
use it, you would replace "oldname" with your old hostname and "newname"
with your new hostname. You would run it at the top level of a checked out
workspace.
DO NOT run this script without modification on a directory which has source
from more than one cvs repository. It takes the CVSROOT info from the top
level CVS directory and puts a modified version in every directory below.

============================================================================
====
@echo off
if not exist CVS/Root goto :NOCVSDIR

for /f "tokens=1-3 delims=:" %%i in ('type CVS\Root') do (
  set method=%%i
  set reporoot=%%k
  set userathost=%%j
)
set userathost=%userathost:oldname=newname%
set CVSROOT=:%method%:%userathost%:%reporoot%

echo CVSROOT is %CVSROOT%

for /f "tokens=* delims=/" %%i in ('"dir /s/b/a:-d Root|find "CVS\Root""')
do (
  echo %CVSROOT%>"%%i"
)

goto :EOF

:NOCVSDIR

echo There is no CVS directory here.
============================================================================
====
I hope that helps.
Cheers,
Jerry
============================================================================
====
From: Christophe Rochefolle [mailto:[EMAIL PROTECTED]]

I was running CVS.1.10.8 on  alinux machine and it works with my WinCVS. I
changed the hostname of the cvs server, and now it doesn't work anymore : it
says it cna't find the host ( though I try to access it using the IP address
).
Thanks.

  C Rochefolle

Reply via email to