Many times we use the CVS when we do project development, now I will introduce you to how to use the CVS management function under Eclipse, and the Eclipse itself comes with CVS. We just make it connected to the CVS server.
Look down
After clicking the CVS icon, you can click the right button in the blank, and create a repository location, as shown below.
After entering the information, click Finish, it is created, the connection to the CVS server, let's open the directory on the CVS server.
For directories on the CVS server, we can detect, one is to detect the project, and the directory detection will automatically generate a project in Eclipse.
You can also detect a directory to any project, that is, [check], you need to pay attention to only the file detected, can be submitted after modification. Let's see the operation of the file:
For documents, we are most commonly used to compare the differences between all version files in CVS, so that we look for updates, click on any file to click the right click, then we can use the image in the resource history. See the figure below:
We hold down the Ctrl key to click the mouse to select two versions of the file, then click the right mouse button, click the comparison to compare the difference between the two versions of this file.
Let's take a look at how to update the file on the CVS server, the front already said, only the files detected from the CVS server can be updated and submitted, see the picture below
Check any of the detected files in the project, click the right mouse button, select a group, you can see a lot of functions such as submission and updates. As long as you change, click Submit to submit it to the CVS server. Click the update to update the local file from the CVS server, here you need to pay attention, when we create the project is the source code file and compiled class files It is a different directory, it is not possible to pass the document, the password will cause the file problem on the CVS server, and can only copy the class file separately to the directory specifically used to upload, because the project will put the original file when the project is compiled The lower CVS directory is also compiled into the class file, so this problem will result.
Below, it is possible to say a history of an Eclipse local file. See the comparison and replacement in the figure above, which is an Eclipse a local history function to help you recover or compare the previous or previous files. Look down
I believe that everyone will understand this feature.
The basic function of Eclipse CVS is actually very simple. If you try, you will know that the most used in the project is its comparison function. For the file upload me or use CVS client programs, because the source code directory and class file Different catalogs, so this is safe, hope
These can help all CVs in Eclipse. If you have any questions, please point out.
Big bellows
2004.10.9
Basic Method for Eclipse CVS (2)
In the first part, a problem is described. About the project When compiling, the CVS directory under the original file is also compiled into class files, so it will cause the upper-pass type file. After two days of research, this problem can be solved. Methods as below:
Click on the preference under the window to see the figure below:
According to the figure, the CVS directory has been filtered, and there is a clear folder when it is completely constructed, so that the compilation file does not delete the CVS directory in the folder in the class file. You can solve the problem.
Basic Method of Eclipse CVS (3)
When we conduct a project to develop, we usually encounter a problem that two people download the same file from the CVS server, modify it, when a person is submitted and the other will usually be forwarded. The override of a person is overwhelmed, let's take a look at how the CVS in Eclipse handles this problem. First we test a directory from the CVS to the item as Test and open a file TEST1.TXT file plus ADC as follows Figure: Then we download the same TEST directory with the CVS client program, then add BBB in the TEST1.TXT file, which is equivalent to the same file at the same time, and let us first submit one. As shown below:
Then submit the same file TEST1.TXT in Eclipse, as shown below
There will be an error:
This error indicates that your submission file fails, I will use another function, which is to synchronize with the repository, you can see in the previous figure, click on the resource library to see the following picture: There is a corresponding description in the figure.
This way you can know where the first update is changed, more importantly, you can also overwrite submit, or override the updated local files, see the picture below:
Good about Eclipse CVS, say so much, I hope that everyone is helpful.