Discussion:
Problem updating from a different repository
Euro Transmit, S.L. - Michael
2009-02-14 11:30:09 UTC
Permalink
Hello,

I'm a CVS newbie and having problems working with two different
repositories on the same working copy.

1. I have a working copy checked out from a local repository (REP2 under
/cvsroot).
2. Now I would like to update this copy of the module from a remote
repository (REP1 remote server under /home/cvsroot). It is a repository
where I don't have a write privilege, but where the actual HEAD version
is contained. My local repository is just for keeping track of minor
changes I apply to the source.

After having read the docs and the archives to this list, I still don't
understand how I could update my working copy from the main repository
(REP1). Whenever I try this, I get a "cannot open directory" error.

Is it because of the different relative locations (/cvsroot <>
/home/cvsroot) of the repositories.

Thanks in advance for any hints!

Michael
Arthur Barrett
2009-02-14 18:53:05 UTC
Permalink
Michael,
Post by Euro Transmit, S.L. - Michael
I'm a CVS newbie and having problems working with
two different repositories on the same working copy.
This is extremely complex to set up - your local repository needs to be
a write through cache.

I'm not sure how you'd do this with CVS, but these posts explain how to
do it with CVSNT:
http://www.cvsnt.org/pipermail/cvsnt/2008-May/030637.html
And
http://www.cvsnt.org/pipermail/cvsnt/2008-May/030642.html
And
http://www.cvsnt.org/pipermail/cvsnt/2008-May/030653.html
And
http://www.cvsnt.org/pipermail/cvsnt/2008-May/030655.html
And
http://www.cvsnt.org/pipermail/cvsnt/2008-May/030659.html

Repository replication is almost never needed - CVS is designed to work
without it even over very slow networks or while a developer is offline
for long periods of time.
Post by Euro Transmit, S.L. - Michael
After having read the docs and the archives to this list,
I still don't understand how I could update my working
copy from the main repository (REP1). Whenever I try this,
I get a "cannot open directory" error.
You need to send the newsgroup the actual commands you are using and the
actual (compelte) error message including the 'connection string' (also
called the CVSROOT) that looks like:
* :pserver:***@host:/repo
* :local:host:/var/opt/blah
* etc

Regards,


Arthur Barrett
Euro Transmit, S.L. - Michael
2009-02-15 11:32:54 UTC
Permalink
Post by Arthur Barrett
Michael,
Post by Euro Transmit, S.L. - Michael
I'm a CVS newbie and having problems working with
two different repositories on the same working copy.
This is extremely complex to set up - your local repository needs to be
a write through cache.
I'm not sure how you'd do this with CVS, but these posts explain how to
http://www.cvsnt.org/pipermail/cvsnt/2008-May/030637.html
And
http://www.cvsnt.org/pipermail/cvsnt/2008-May/030642.html
And
http://www.cvsnt.org/pipermail/cvsnt/2008-May/030653.html
And
http://www.cvsnt.org/pipermail/cvsnt/2008-May/030655.html
And
http://www.cvsnt.org/pipermail/cvsnt/2008-May/030659.html
Repository replication is almost never needed - CVS is designed to work
without it even over very slow networks or while a developer is offline
for long periods of time.
Post by Euro Transmit, S.L. - Michael
After having read the docs and the archives to this list,
I still don't understand how I could update my working
copy from the main repository (REP1). Whenever I try this,
I get a "cannot open directory" error.
You need to send the newsgroup the actual commands you are using and the
actual (compelte) error message including the 'connection string' (also
* :local:host:/var/opt/blah
* etc
Regards,
Arthur Barrett
Hello Arthur,

thanks so much for your hints.

I've checked out my project from the local repository like this (CVSROOT
environment variable is set to /cvsroot):

/var/parent/#> cvs checkout packages

No I would like to update one subdirectory ("package") of the project
from the remote server like this:

/var/parent/#> cvs -z3 -d
:pserver:***@the.server.com:/home/cvsroot update package_name

Then I get the following error message:

cvs update: cannot open directory /home/cvsroot/packages/package_name:
No such file or directory

Thanks,

Michael
Larry Jones
2009-02-16 19:21:22 UTC
Permalink
Post by Euro Transmit, S.L. - Michael
I'm a CVS newbie and having problems working with two different
repositories on the same working copy.
That's because CVS was never intended to be used that way.
--
Larry Jones

Summer vacation started! I can't be sick! -- Calvin
Loading...