Discussion:
updating 3rd party code issue
kunal patel
2010-03-21 01:09:33 UTC
Permalink
Hi all,

I am trying to create a cvs repository for managing modified openssl
distribution for my company. I am very new to CVS and ran into quite of
problems while doing it.. Please see the below listed steps that I followed
for doing it.

1)After setting up the repository I imported the openssl code that we are
using to the repository using:

cvs import -m "Import of openssl modified 0.9.8g" foo_openssl/openssl
OPENSSL_DIST OSSL_0_9_8g

Note: This distribution has few files which did not come with openssl
distribution. We added those files to the distribution and we also modified
quite a bit of code

Once the import is finished I did CVS commit

2)Now I want to upgrade this version with the new version 0.9.8m and merge
all our changes to that version. To do that I ran cvs import again:
cvs import -m "Import of openssl 0.9.8m" foo_openssl/openssl OPENSSL_DIST
OSSL_0_9_8m

This step was successful without any merge conflicts

3)Now to merge the changes between both tags I did
cvs checkout -jOSSL_0_9_8g -jOSSL_0_9_8m foo_openssl

Now when I look into the checked out source all the files we added are
gone/missing. Also, lot of the changes we had did not merge into the new
distribution. Also, it did not report any merge conflicts which was also
incorrect...

I am looking for suggestions on what is the best way for doing such a thing
with CVS...

Thanks,
Kunal
Larry Jones
2010-03-21 18:59:16 UTC
Permalink
Post by kunal patel
I am trying to create a cvs repository for managing modified openssl
distribution for my company. I am very new to CVS and ran into quite of
problems while doing it.. Please see the below listed steps that I followed
for doing it.
You need to read the section of the manual on tracking third-party
sources:

<http://ximbiot.com/cvs/manual/cvs-1.11.23/cvs_13.html#SEC103>

What you need to do is start over and import the *unmodified* source
code you started with first. Then check it out and replace the checked-
out code with your modified code and check it in. Then you can import
the new version and merge the changes into your version successfully.
--
Larry Jones

Let's just sit here a moment... and savor the impending terror. -- Calvin
Loading...